This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC-3.2.2 bootstrap FAILURE: 1 reduce/reduce conflict in objc-parse.y
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.