Re: C2026 error in VC++ with large number of tokens
Vince Huffaker <[email protected]> Sat, 21 Aug 2021 19:58:33 -0600
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, Thank you for your reply. See the input file, ApReadBinary.ypp (I have reduced it greatly from the original). The HPP file has the bad line at line # 3900 - the YY_ASSERT is too long. The key parameters in the YPP file seem to be: %language "c++" %define parse.assert Thank you very much for your help! --Vince-- On 8/21/2021 12:54 AM, Akim Demaille wrote: > 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.
ApReadBinary.zip
(application/x-zip-compressed, 102.8 KB) - not displayed