From: Jeff Cohen <jeffc@jolt-lang.org>
Date: Mon, 30 Aug 2004 21:46:42 -0700
FileParser.tab.c: In function `int Fileparse()':
FileParser.tab.c:2043: error: syntax error before `goto'The offending lines bison generated are:
/*----------------------------------------------------.
yyerrlab1 -- error raised explicitly by an action. |
`----------------------------------------------------*/
yyerrlab1:/* Suppress GCC warning that yyerrlab1 is unused when no action
invokes YYERROR. */
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
__attribute__ ((__unused__))
#endifgoto yyerrlab2; <== line 2043
I'm using bison 1.875. But it worked the last time, so I don't know why
it doesn't work now. Deleting the __attribute__ clause fixes it.
Or correctly terminate the statement/line with ; (although it becomes a warning about an empty statement).
/Henrik