]> git.saurik.com Git - bison.git/commit
c++: variants: don't leak the lookahead in error recovery
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 8 Jan 2015 10:19:57 +0000 (11:19 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 8 Jan 2015 15:07:59 +0000 (16:07 +0100)
commit00cebd11d48e07065cd012929d96085cfe37d07b
tree83ddf31416059cc070b34926bc08d4fca02f6232
parentee2f433512c2bfc1f8fe0f518f0e80e5e540bf26
c++: variants: don't leak the lookahead in error recovery

During error recovery, when discarding the lookeahead, we don't
destroy it, which is caught by parse.assert assertions.

Reported by Antonio Silva Correia.
With an analysis and suggested patch from Michel d'Hooge.
<http://savannah.gnu.org/support/?108481>

* tests/c++.at (Variants): Strengthen the test to try syntax errors
with discarded lookahead.
data/lalr1.cc
tests/c++.at