]> git.saurik.com Git - bison.git/commitdiff
Fix precedence for end token.
authorJoel E. Denny <jdenny@clemson.edu>
Mon, 2 May 2011 01:53:35 +0000 (21:53 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Mon, 2 May 2011 03:13:13 +0000 (23:13 -0400)
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.
(cherry picked from commit 9d6af153184eea964fef7f87d76a60fe29f715b5)


No differences found