This is the mail archive of the
cygwin
mailing list for the Cygwin project.
FYI: latest bison generates syntax error
- From: Greg Couch <gregc at cgl dot ucsf dot edu>
- To: cygwin at cygwin dot com
- Date: Thu, 25 May 2006 11:21:39 -0700 (PDT)
- Subject: FYI: latest bison generates syntax error
Just updated my bison recently (bison-2.1-1) and now the generated y.tab.c
file has an extra semicolon in it that causes the compiler to choke:
#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM)
# else
int yyparse (YYPARSE_PARAM)
void *YYPARSE_PARAM;
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()
--> ;
#endif
#endif
{
Bison 2.2, which came out last week fixes the problem.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/