X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/55fb68aabf15f6c2a9046c0bc3ad21a4aa2ca760..refs/heads/master:/data/lalr1.cc diff --git a/data/lalr1.cc b/data/lalr1.cc index eb0923e9..4c823409 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -848,6 +848,7 @@ b4_dollar_popdef])[]dnl { slice slice (yystack_, yylen); YYLLOC_DEFAULT (yylhs.location, slice, yylen); + yyerror_range[1].location = yylhs.location; }]])[ // Perform the reduction. @@ -918,8 +919,7 @@ b4_dollar_popdef])[]dnl YYERROR and the label yyerrorlab therefore never appears in user code. */ if (false) - goto yyerrorlab;]b4_locations_if([[ - yyerror_range[1].location = yystack_[yylen - 1].location;]])[ + goto yyerrorlab; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ yypop_ (yylen);