You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- src/parse-gram.c 2020-05-09 11:07:53.483627254 +0000+++ src/parse-gram.c 2020-05-09 11:08:05.619952863 +0000@@ -2705,7 +2705,7 @@
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
- // Pop stack until we find a state that shifts the error token.+ /* Pop stack until we find a state that shifts the error token. */
for (;;)
{
yyn = yypact[yystate];
--- data/skeletons/yacc.c 2020-05-09 11:20:47.180538119 +0000+++ data/skeletons/yacc.c 2020-05-09 11:21:03.464980276 +0000@@ -1979,7 +1979,7 @@
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
- // Pop stack until we find a state that shifts the error token.+ /* Pop stack until we find a state that shifts the error token. */
for (;;)
{
yyn = yypact[yystate];
Thanks.
The text was updated successfully, but these errors were encountered:
t-bltg
changed the title
Genreated code fails with -ansi
Generated code fails with -ansi
May 9, 2020
My swig build fails with the latest bison version
3.6
. The generated code fails to compile with-ansi
compiler flag.The issue is with the c++ style comment here https://github.com/akimd/bison/blob/master/src/parse-gram.c#L2708 (also in some other locations: data/skeletons/yacc.c, ...)
A fix would be:
Thanks.
The text was updated successfully, but these errors were encountered: