parser stack overflow, program too complex eroor C1026



Apparently there is a limit to how complex a single header file with a huge
class definition in it can be. The source to one of my header files is at a
point that it compiles and runs fine, until I add one more line to it, and I
then get this compiler error:

fatal error C1026: parser stack overflow, program too complex
This diagnostic occurred in the compiler generated function 'void
My_Class::Dispose(bool)'

Has this happened to anyone else? Is there a way to increase the 'parser
stack'? Is this a bug, or is there a limit to complexity for a single class
and/or header file?

[==P==]


.



Relevant Pages

  • Re: parser stack overflow, program too complex eroor C1026
    ... parser stack overflow, ... > This diagnostic occurred in the compiler generated function 'void ... > a single class and/or header file? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: #include question
    ... After the compiler has created all the objects of a ... >certain class, the class definition is no longer useful, SO it doesn't end ... By default a variable is defined (which includes declaration) unless it ... A function is usually declared in a header file. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: header files
    ... As all code can be written in the header file ... > void foo() ... > compiler tries to compile main.c it eventually reaches the line ... > the compiler has never heared about a function called printf(). ...
    (alt.comp.lang.learn.c-cpp)
  • Re: include file question
    ... Where did you read that #pragma once is obsolete? ... because it suggests that what you need is some kind of weird compiler hack to make your ... inside the header file to prevent multiple execution of the contents. ... documentation about Objective C, which is a language which is NOT the C++ language, has ...
    (microsoft.public.vc.mfc)
  • Re: header files
    ... As all code can be written in the header file ... void foo() ... So when the compiler compiles ... the compiler has never heared about a function called printf(). ...
    (alt.comp.lang.learn.c-cpp)