mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Fix precedence for end token.
Since Bison 2.3b, which restored the ability of precedence directives to assign user token numbers, doing so for user token number 0 has produced an assertion failure. * NEWS (2.5): Document fix. * src/symtab.c (symbol_user_token_number_set): In the case of the end token, don't decrement ntokens if it was never incremented. * tests/regression.at (Token number in precedence declaration): Extend.
This commit is contained in:
10
NEWS
10
NEWS
@@ -343,6 +343,16 @@ Bison News
|
||||
|
||||
bison -Wnone gram.y
|
||||
|
||||
** Precedence directives can now assign token number 0:
|
||||
|
||||
Since Bison 2.3b, which restored the ability of precedence
|
||||
directives to assign token numbers, doing so for token number 0 has
|
||||
produced an assertion failure. For example:
|
||||
|
||||
%left END 0
|
||||
|
||||
This bug has been fixed.
|
||||
|
||||
* Changes in version 2.4.3 (2010-08-05):
|
||||
|
||||
** Bison now obeys -Werror and --warnings=error for warnings about
|
||||
|
||||
Reference in New Issue
Block a user