Red Hat Bugzilla – Bug 190376
generates bad definition in K&R C when yyparse has no arguments
Last modified: 2007-11-30 17:11:31 EST
Description of problem:
bison after FC4 (bison-2.0-6) generates invalid code for the attached parser.y
Specifically at line 1223 of y.tab.c an incorrect ";" is introduced.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.bison -ydv parser.y
line 1223 of y.tab.c contains a ";"
no ";" on line 1123, like the blank line 1133 of y.tab.c generated by bison-2.0-6
The relevant fragment of a "diff -ub y.tab.c.old y.tab.c.new" is:
@@ -1130,13 +1220,13 @@
Created attachment 128456 [details]
source file triggering the problem
Sorry, typo in line number. That should read:
no ";" on line 1223, like the blank line 1133 of y.tab.c generated by bison-2.0-6
This seems to be a bug in the m4 macros that are part of 2.1 from upstream.
I'm testing out a patch.
bison-2.1-2.FC5 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.
Thanks for fixing this. Could you push into Fedora-devel as well please?
There is a new rpm in rawhide also.