Red Hat Bugzilla – Bug 62121
bison 1.34 incompatible with C++ compilers
Last modified: 2008-05-01 11:38:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-31 i686)
Description of problem:
Parsers generated with version 1.34 of bison cannot be compiled with C++
compilers when YYSTYPE is a class. This breaks many C++ projects that use bison.
I recommend updating the package to bison 1.35 where the problem has been fixed.
For all the gory details, see the given URL.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
An example of a project that breaks because of this:
1. Download GiNaC sources from www.ginac.de (and install CLN if you
haven't already done so)
3. rm ginsh/ginsh_parser.cc [to force a rerun of bison]
Actual Results: Compilation in the "ginsh" directory fails with the message
/usr/share/bison/bison.simple:75: member `GiNaC::ex yyalloc::yyvs' with
constructor not allowed in union
Expected Results: A clean compile (as is the case with bison-1.28-7 from RedHat
For all the gory details, see
update 1.35 in rawhide, thanks