This is the mail archive of the mailing list for the Cygwin 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: bison-1.875-1 generates code incompatible with g++

Christopher Faylor wrote:
> On Sun, Feb 02, 2003 at 07:33:22PM -0000, Max Bowsher wrote:
>> (Ran into this when building setup)
>> bison 1.875 produces this code fragment:
>>> yyerrlab1:
>>>   /* Suppress GCC warning that yyerrlab1 is unused when no action
>>>      invokes YYERROR.  */
>>> #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 +
>>>   __GNUC_MINOR__) __attribute__ ((__unused__))
>>> #endif
>> which compiles with gcc, but g++ doesn't accept attributes on labels.
>> This seems to be a g++ bug.
>> Comments?
> Probably one of the mailing lists designed for bison would have
> observations about this:
> Search for "bison".

Thanks for the pointer. Turns out this was resolved without my input in

It is a test release, but the changes seem to be entirely bug fixes. Would
you consider upgrading the Cygwin package to this version? If not, would you
consider taking just the data/yacc.c file from bison-1.875a and releasing a
Cygwin bison-1.875-2?


Unsubscribe info:
Bug reporting:

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