lalr1.cc: check (and fix) %printer exception safety
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 25 Sep 2012 09:41:22 +0000 (11:41 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 6 Oct 2012 17:53:45 +0000 (19:53 +0200)
commit25a6ad2f109cfc8a4683d406054141d1a2210b36
tree7bbd36e778dfd7916730e741c688f7f1b060c3cf
parenta26424642b1de2c5e237cd69a54f12b2f430321f
lalr1.cc: check (and fix) %printer exception safety

* tests/c++.at (Exception safety): Let the parser support the --debug
option.
On 'p', throw an exception from the %printer.
* data/lalr1.cc (yyparse): Do not display the values we discard, as it
uses %printer, which might have thrown the exception.
data/lalr1.cc
tests/c++.at