help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stack doesn't grow with C++


From: Joerg Bornemann
Subject: stack doesn't grow with C++
Date: Thu, 20 Nov 2003 11:11:58 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

Hello!

I'm using GNU Bison 1.3.5 (GNUWin32 distribution) and MS C++ 7.1.
I encountered the problem that my parser produces stack overflow errors if the stack size becomes > YYINITDEPTH (== 200).

Looking at the generated file produced:

#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
         || ((YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
///...
/// definitions of YYSTACK_RELOCATE and other stuff
//...
#endif

Why has the stack a fixed size when using C++ unless YYLTYPE_IS_TRIVIAL is defined (YYSTYPE_IS_TRIVIAL is defined in my generated file)?


Thanks in advance!
--
Joerg Bornemann <address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]