bug-bison
[Top][All Lists]
Advanced

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

%destructor doesn't work without %union


From: Ben Davis
Subject: %destructor doesn't work without %union
Date: Sun, 25 Jul 2004 15:07:11 +0100

Hi,
 
Please CC all correspondence to me, since I am not on the list.
 
I have encountered a bug in Bison 1.875b. Specifically, I have found that %destructor fails when my code contains a #define YYSTYPE rather than a %union. The output contains the following line:
 
        { delete yyvaluep->(null); };
 
generated from the action { delete $$; }.
 
Apologies for not doing all the standard stuff like checking if it's fixed in CVS and attaching a minimal example that reproduces the problem. But I'm short on time, and it looks to me like a straightforward bug with an obvious cause! If you do need more information, let me know.
 
Ben

reply via email to

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