[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in bison 2.1
From: |
Wang, Zhen |
Subject: |
Bug in bison 2.1 |
Date: |
Mon, 3 Oct 2005 16:57:16 -0400 |
Hi,
Bison 2.1 produces the sequence of code as below. Note the line
containing only a ";". This extra ";" causes compiler error because the
body of yyparse() follows "int yyparse()" (right after two #endifs).
Bison 1.875 is Ok.
#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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in bison 2.1,
Wang, Zhen <=