lalr1.cc: check (and fix) %initial-action exception safety
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 25 Sep 2012 09:17:55 +0000 (11:17 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 6 Oct 2012 17:53:45 +0000 (19:53 +0200)
commita26424642b1de2c5e237cd69a54f12b2f430321f
treef03a72bebd3d2beac30b32ce388c89e3ed6c2b01
parent7e1fabbeae9accb48611457f550286f1934ef533
lalr1.cc: check (and fix) %initial-action exception safety

* data/lalr1.cc: Check size > 1, rather than size != 1, when cleaning
the stack, as at the beginning, size is 0.
* tests/c++.at (Exception safety): Check exception safety in
%initial-action.
data/lalr1.cc
tests/c++.at