GCC-3.2.2 bootstrap FAILURE: 1 reduce/reduce conflict in objc-parse.y

Joe Buck jbuck@synopsys.com
Thu Jan 30 01:46:00 GMT 2003


On Wed, 29 Jan 2003, Joe Buck wrote:
> > I disagree.  For languages that have a natural LALR(1) grammar, you are
> > correct, but Objective-C is not necessarily such a language.  If the current
> > parser works, it is wrong to risk breaking it.
 
On Wed, Jan 29, 2003 at 11:17:54PM +0000, Joseph S. Myers wrote:
> It has been suggested that cc1obj should be merged into cc1 (making 
> Objective-C a runtime dialect choice).  If this is done before Neil's 
> parser is available, and if it isn't done by embedding two separate Bison 
> parsers in one executable, then these conflicts get introduced in the C 
> grammar and risk breaking that.

Agreed; if a substantially new parser is made, reduce/reduce conflicts
should be avoided or fixed.  But if we're just maintaining the existing
parser, it's not worth messing with.
 



More information about the Gcc-bugs mailing list