FYI: latest bison generates syntax error

Greg Couch gregc@cgl.ucsf.edu
Thu May 25 18:21:00 GMT 2006


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/



More information about the Cygwin mailing list