Package: bison
Version: 1:2.6.2.dfsg-1
Severity: normal

Hello Chuan-kai,

This version of bison -d parse.y generates a parse.h ending file with the 
following
(assuming the file contain
%parse-param {char **lex}
)

#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int parse (void *YYPARSE_PARAM);
#else
int parse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int parse (char **lex);
#else
int parse ();
#endif

This was not done in bison 2.4.1 and earlier release, and as far as I can see 
this
change is not documented anywere.

This is unfortunate because this does not necessarily declare int parse (char 
**lex)
in the right C++ namespace, causing conflict with the user supplied prototype
(which is certainly necessary with older releases), causing compilation error.

Cheers,
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to