Bug 62121

Summary: bison 1.34 incompatible with C++ compilers
Product: [Retired] Red Hat Public Beta Reporter: Christian Bauer <cb>
Component: bisonAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: skipjack-beta1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=130914&repeatmerged=yes
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-27 17:50:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Bauer 2002-03-27 17:50:09 UTC
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):


How reproducible:
Always

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)
2. ./configure
3. rm ginsh/ginsh_parser.cc [to force a rerun of bison]
4. make


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
7.2).


Additional info:

For all the gory details, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=130914&repeatmerged=yes

Comment 1 Than Ngo 2002-03-27 19:31:17 UTC
update 1.35 in rawhide, thanks