help-bison
[Top][All Lists]
Advanced

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

Re: stack doesn't grow with C++


From: Hans Aberg
Subject: Re: stack doesn't grow with C++
Date: Thu, 20 Nov 2003 19:17:45 +0100

At 11:11 +0100 2003/11/20, Joerg Bornemann wrote:
>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).

Your Bison version is old; use version 1.75-1.875x. I have posted a C++
skeleton file plus instructions how to use it in the Bison-Patches list.

There turned out to be too many problems with the old C++ compatible
bison.simple C skeleton file. For example, copy constructors are no
properly invoked. So the only safe way is to use proper C++ containers for
stack.

  Hans Aberg






reply via email to

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