c++: please G++ 4.8 with -O3: array bounds
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 29 Jan 2013 07:52:57 +0000 (08:52 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 29 Jan 2013 08:04:08 +0000 (09:04 +0100)
commit675d9fe4899dc7a2b99d7401a58610b7c63ec1e5
tree679c7fb43dab6d59d4d1d0acad15194082f85170
parent26f95f5f356ca003d125a5c5285a09a0564e3bd9
c++: please G++ 4.8 with -O3: array bounds

* data/c++.m4, data/lalr1.cc (by_state, by_type): Do not use -1 to
denote the absence of value, as GCC then fears that this -1 might
be used to dereference arrays (such as yytname).
Use 0, which corresponds to $accept, which is valueless (the needed
property: the symbol destructor must not try to reclaim the memory
associated with the symbol).
data/c++.m4
data/lalr1.cc