mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
glr2.cc: fix yycompressStack
Currently, yycompressStack expects the free items to be states only. That's not the case. Fixes 712 and 730 pass. 748 still fails, but later and differently (heap-use-after-free). * data/skeletons/glr2.cc (glr_stack_item::setState): New. (glr_stack_item::yycompressStack): Use it. * tests/glr-regression.at: Adjust.
This commit is contained in:
@@ -142,7 +142,6 @@ m4_pushdef([AT_TEST],
|
||||
[AT_SETUP([Improper handling of embedded actions and dollar(-N) in GLR parsers: $1])
|
||||
|
||||
AT_BISON_OPTION_PUSHDEFS([%glr-parser $1])
|
||||
AT_GLR2_CC_IF([AT_XFAIL_IF([true])])
|
||||
|
||||
AT_DATA_GRAMMAR([glr-regr2a.y],
|
||||
[[/* Regression Test: Improper handling of embedded actions and $-N */
|
||||
@@ -744,7 +743,6 @@ m4_pushdef([AT_TEST],
|
||||
[AT_SETUP([Incorrectly initialized location for empty right-hand side in GLR: $1])
|
||||
|
||||
AT_BISON_OPTION_PUSHDEFS([%glr-parser %locations $1])
|
||||
AT_GLR2_CC_IF([AT_XFAIL_IF([true])])
|
||||
|
||||
AT_DATA_GRAMMAR([glr-regr8.y],
|
||||
[[
|
||||
|
||||
Reference in New Issue
Block a user