]> git.saurik.com Git - bison.git/commit
diagnostics: use appropriate location for useless precedence/associativity
authorAkim Demaille <akim@lrde.epita.fr>
Mon, 22 Apr 2013 09:26:28 +0000 (11:26 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Mon, 22 Apr 2013 09:36:22 +0000 (11:36 +0200)
commitd8ce7031024f463a8ba96fc7b2a75facdc52ecb9
tree6c78041beadaa96a61cea9b45d36b053dd621145
parent8782fe26cbbbcd4e53354344849ef9f0580caf8a
diagnostics: use appropriate location for useless precedence/associativity

* src/symtab.c (symbol_precedence_set): Use prec_location, not
location (which is the first occurrence of the symbol, possibly just
%token).
Also, as redefinitions are not allowed, keep the first values, not
the subsequent ones.
* tests/conflicts.at, tests/existing.at, tests/regression.at: Adjust.
src/symtab.c
tests/conflicts.at
tests/existing.at
tests/regression.at