Re: C2026 error in VC++ with large number of tokens

Akim Demaille <[email protected]> Sat, 21 Aug 2021 08:54:35 +0200
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
Hi Vince,

> Le 20 août 2021 à 21:39, Vince Huffaker <[email protected]> a écrit :
> 
> Hi,
> 
> I know this has been a known bug, but it says that it is fixed, and we just installed the latest bison, 3.7.6 (from cygwin).  We are building a YPP file and getting this error on a YY_ASSERT line that has lots of tokens in it.
> 
> Was this bug fixed?

Yes, it was.  Please see <https://lists.gnu.org/r/bison-patches/2020-11/msg00050.html> for details.  And check in your output file that it was indeed generated by 3.7.6.

> Do we have some weirdness in our code that sneaks past the fix?  If you just need to look at the YPP file, how shall I get that to you?

An attachment to your mail, or a URL.  A reduced example (grammar file and bad output from bison) would be most useful.

Cheers.