This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC-3.2.2 bootstrap FAILURE: 1 reduce/reduce conflict in objc-parse.y
Raja R Harinath <harinath@cs.umn.edu> writes:
| Hi,
|
| Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
|
| > Paolo Carlini <pcarlini@unitus.it> writes:
| >
| > | Gabriel Dos Reis wrote:
| > |
| > | >Could anyone bootstrap with Bison 1.875?
| > | >
| > | Just tried for you, Gaby: definitely Bison 1.875 is not ok for Objc!
| >
| > Thanks!
| >
| > I don't know whether this is a bug in objc-parse.y or a bug in Bison
| > 1.875. I'll make a release note unless someone comes with a fix.
|
| See
|
| objc/9267: bison 1.875 doesn't like reduce/reduce errors with %expect N
Aha, thanks.
| It is a bug in 'objc-parse.y' (a misuse of %expect). There has
| been a reduce/reduce conflict in that file for quite some time. The
| comment even says so (c-parse.in):
|
| ifobjc
| %expect 32 /* shift/reduce conflicts, and 1 reduce/reduce conflict. */
| end ifobjc
Interestingly, that number is 31 in my local copy of objc-parse.y.
The fix you propose sounds sensible to me. An Objective-C maintainer
cares to comment before I make that change?
-- Gaby