Destroy the variants that remain on the stack in case of error.

* data/lalr1-fusion.cc (yydestruct_): Invoke the variant's
	destructor.
	Display the value only if yymsg is nonnull.
	(yyreduce): Invoke yydestruct_ when popping lhs symbols.
This commit is contained in:
Akim Demaille
2008-07-28 16:01:57 +02:00
parent 2d32fc9fe2
commit a3d4c6fbb1
2 changed files with 29 additions and 10 deletions

View File

@@ -1,3 +1,11 @@
2008-11-07 Akim Demaille <demaille@gostai.com>
Destroy the variants that remain on the stack in case of error.
* data/lalr1-fusion.cc (yydestruct_): Invoke the variant's
destructor.
Display the value only if yymsg is nonnull.
(yyreduce): Invoke yydestruct_ when popping lhs symbols.
2008-11-07 Akim Demaille <demaille@gostai.com>
Add "%define assert" to variants.