mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* 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.
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,5 +1,17 @@
|
||||
2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* 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.
|
||||
|
||||
* data/yacc.c (yytnamerr): Fix typo: local var should be of type
|
||||
YYSIZE_T, not size_t.
|
||||
* tests/regression.at (Trivial grammars): New test, to catch
|
||||
|
||||
Reference in New Issue
Block a user