]> git.saurik.com Git - bison.git/commit
* data/glr.c (yyreportSyntaxError): Fix off-by-one error in
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2006 06:13:53 +0000 (06:13 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2006 06:13:53 +0000 (06:13 +0000)
commitd6645148013be7c2abb641fcebe68d48af1a3739
treea3f3d49a620f12940ed185aaddf79005754063e9
parent276f48df88293dc0a67237d1124a26e0f9ee82fb
* data/glr.c (yyreportSyntaxError): Fix off-by-one error in
checking against YYLAST that caused the parser to miss a potential
alternative in its diagnostic.
Problem reported by Maria Jose Moron Fernandez in
<http://lists.gnu.org/archive/html/bug-bison/2006-05/msg00024.html>.
* data/lalr1.cc (yysyntax_error_): Likewise.
* data/yacc.c (yysyntax_error): Likewise.
* tests/regression.at (_AT_DATA_DANCER_Y): Use static array for
tokens, in case we run into an older C compiler.
(_AT_DATA_EXPECT2_Y, AT_CHECK_EXPECT2): New macros.
Use them to check for the off-by-one error fixed above.
ChangeLog
data/glr.c
data/lalr1.cc
data/yacc.c
tests/regression.at