GCC Bugzilla – Bug 9267
bison 1.875 doesn't like reduce/reduce errors with %expect N
Last modified: 2004-04-21 02:06:17 UTC
bison 1.875 exits on compiling objc-parse.y complaining that there are reduce/reduce conflicts where none were expected.
This is a recent change, but it is an extension of the behaviour documented in the Bison 1.28 info documentation. According to the Bison 1.28 documentation,
Here N is a decimal integer. The declaration says there
should be no warning if there are N shift/reduce
conflicts and no reduce/reduce conflicts. The usual
warning is given if there are either more or fewer
conflicts, or if there are any reduce/reduce conflicts.
Bison 1.875 has converted the warning to an error in those exceptional cirumstances.
%expect was misused in objc-parse.y. Removing it should not result in more warnings than already there, and also prevents errors when using a newer bison.
State-Changed-Why: Applied suggested patch on 3.2.2, 3.3 and 3.4 (mainline).