解析器堆栈溢出,程序太复杂eroor C1026 [英] parser stack overflow, program too complex eroor C1026
问题描述
显然,单个头文件具有巨大的
类定义的复杂程度是有限的。我的一个头文件的源是一个
点,它编译并运行正常,直到我再添加一行,然后我b / b
然后得到这个编译器错误:
致命错误C1026:解析器堆栈溢出,程序太复杂
此诊断发生在编译器生成的函数中''void
My_Class :: Dispose(bool)''
这是否发生在其他人身上?有没有办法增加''解析器
stack''?这是一个错误,还是单个类的复杂性有限制?
和/或头文件?
[== P ==]
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==]
推荐答案
Peteroid写道:
Peteroid wrote:
显然单个头文件的复杂程度是有限的
其中的类定义可以。我的一个标题
文件的来源是它编译并运行正常的点,直到我添加一行
,然后我得到这个编译器错误:
这个诊断发生在编译器生成的函数中''无效
My_Class :: Dispose(bool)''
这发生在其他人身上了吗?有没有办法增加
''解析器堆栈''?这是一个错误,还是对单个类和/或头文件的复杂性有限制?
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?
AFIAK,没有办法增加限制,但我从来没有听说过任何人
之前达到这个限制。
这是一个完全内联写的大班吗? />
-cd
AFIAK, there''s no way to increase the limit, but I''ve never heard of anyone
hitting this limit before.
Is this a large class written entirely inline?
-cd
Peteroid写道:
Peteroid wrote:
是的,它完全符合要求。但是我把它简化为一个非常小的源文件,它独立地引起了问题(参见注释中源文件顶部的说明)...
Yes, it is entirely in-line. But I''ve reduced it down to a pretty
small source file that independently causes problem attached (see
instructions at top of source file in commented NOTE)...
那是一个非常小的复制品好吧!您可能想要联系PSS,或者至少打开一个错误报告
http://lab.msdn.microsoft.com/productfeedback
-cd
That''s a pretty small repro alright! You might want to contact PSS, or at
the very least open a bug report at
http://lab.msdn.microsoft.com/productfeedback
-cd
已经有bug报告了!呵呵
注意NEWER上传,更精简,绝对象征性(我的其他其他
帖子)...... :)
[== P ==]
Carl Daniel [VC ++ MVP]" < cp ***************************** @ mvps.org.nospam>
写道消息新闻:eC ************** @ TK2MSFTNGP14.phx.gbl ...
Already have bug reported it! hehe
Note the NEWER upload, even leaner, absolutely symbolic (my other other
post)... :)
[==P==]
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:eC**************@TK2MSFTNGP14.phx.gbl...
Peteroid写道:
Peteroid wrote:
是的,它是完全符合要求。但是我把它简化为一个非常小的源文件,它独立地引起了问题(参见注释中源文件顶部的说明)...
Yes, it is entirely in-line. But I''ve reduced it down to a pretty
small source file that independently causes problem attached (see
instructions at top of source file in commented NOTE)...
这是一个非常小的repro好吧!你可能想联系PSS,或者至少打开一个错误报告
http://lab.msdn.microsoft.com/productfeedback
-cd
That''s a pretty small repro alright! You might want to contact PSS, or at
the very least open a bug report at
http://lab.msdn.microsoft.com/productfeedback
-cd
这篇关于解析器堆栈溢出,程序太复杂eroor C1026的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!