This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug: gcc/cp/parse.y & gcc/cp/decl.h: Conflict on TYPENAME


>>>>> "Raja" == Raja R Harinath <Raja> writes:

Raja> Also, gcc/c-parse.in has two %{ %} regions, which caused some
Raja> trouble with some Bison CVS snapshots.  Do other yaccs complain
Raja> about that?

I have no problem with that.  What is yours?

As for other Yaccs, I have no idea how they behave.  As a matter of
fact, POSIX says nothing about the order of the output (YYSTYPE,
tokens etc.).

The current situation seems to be the most helpful: there are two
sections: before, and after %union.

Hm... Maybe we could keep a single prologue section, but

        union yystype;

very early.  Maybe that would solve all the issues.  Unless someone
has the bad idea to use a `YYSTYPE foo' instead of a `YYSTYPE *foo'.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]