mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
glr2.cc: fix GLR stack expansion
When expanding the GLR stack, none of the pointers were updated to
reflect the new location of the displaced objects.
This fixes
748: Incorrect lookahead during nondeterministic GLR: glr2.cc
* data/skeletons/glr2.cc (yyexpandGLRStack): Update the split point
and the stack tops.
(reduceToOneStack): Factor a bit.
This commit is contained in:
@@ -1388,7 +1388,6 @@ m4_pushdef([AT_TEST],
|
||||
[AT_SETUP([Incorrect lookahead during nondeterministic GLR: $1])
|
||||
|
||||
AT_BISON_OPTION_PUSHDEFS([%glr-parser %locations $1])
|
||||
AT_GLR2_CC_IF([AT_XFAIL_IF([true])])
|
||||
|
||||
AT_DATA_GRAMMAR([glr-regr14.y],
|
||||
[[
|
||||
|
||||
Reference in New Issue
Block a user