mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
Fix core dump reported by Pablo De Napoli in
<http://lists.gnu.org/archive/html/bug-bison/2005-07/msg00053.html>. * tests/regression.at (Invalid inputs with {}): New test. * src/parse-gram.y (token_name): Translate type before using it as an index.
This commit is contained in:
@@ -538,5 +538,5 @@ gram_error (location const *loc, char const *msg)
|
||||
char const *
|
||||
token_name (int type)
|
||||
{
|
||||
return yytname[type];
|
||||
return yytname[YYTRANSLATE (type)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user