help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: member with constructor not allowed in union


From: Akim Demaille
Subject: Re: member with constructor not allowed in union
Date: 14 Mar 2002 18:53:27 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

| Hi,
| On 14 Mar 2002, Akim Demaille wrote:
| > First, I would like to see what problem you really have.  Only people
| > using yylloc can have actual problems.  The other don't have new
| > problems.
| > 
| > Nevertheless, I would like to invite people working with C++ to try
| > the current CVS version of Bison, which does output C++.
| 
| Okay, I just gave the current CVS sources a try and it does not seem to
| help.  The section 
|   /* A type that is properly aligned for any stack member.  */
|   union yyalloc
|   {
|     short yyss;
|     YYSTYPE yyvs;
|   # if YYLSP_NEEDED
|     YYLTYPE yyls;
|   # endif
|   };
| is still generated in my file input_parser.cc and later I get the error
| y.tab.c:154: member `class GiNaC::ex GiNaC::yyalloc::yyvs' with constructor 
not allowed in union

You are not using the C++ output!  Run bison -S bison.c++.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]