bison-patches
[Top][All Lists]
Advanced

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

[PATCH 0/6] maint: c++: clean up the handling of the lookahead


From: Akim Demaille
Subject: [PATCH 0/6] maint: c++: clean up the handling of the lookahead
Date: Thu, 8 Jan 2015 14:52:43 +0100

See <http://savannah.gnu.org/support/?108481>.

Antonio Silva Correia made a complete bug report about a problem in
C++ when using variants: on error recovery, when the lookahead is
discarded, its associated memory is not released.

Michel d'Hooge provided a fine analysis of the problem, and proposed
a solution.  This batch of patches simply uses this as an opportunity
to clean up the code, and fix the problem.

I will install these patches in the near future, once people could
get some time to react.  In the meanwhile, they are in the "next"
branch.

Akim Demaille (6):
  c++: comment and style changes
  c++: clean up the handling of empty symbols
  c++: provide a means to clear symbols
  c++: variants: don't leak the lookahead in error recovery
  c++: symbols can be empty, so use it
  style: tests: simplify the handling of some C++ tests

 data/c++.m4   |  52 +++++++++++++++++++++++++-----
 data/lalr1.cc |  64 +++++++++++++++++++------------------
 tests/c++.at  | 100 ++++++++++++++++++++++++++++++++++------------------------
 3 files changed, 136 insertions(+), 80 deletions(-)

-- 
2.2.1




reply via email to

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