]> git.saurik.com Git - bison.git/commit
In warnings, say "previous declaration" rather than "first
authorJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 7 Jul 2006 21:25:03 +0000 (21:25 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Fri, 7 Jul 2006 21:25:03 +0000 (21:25 +0000)
commitdd60572a8b54ebc51421448f09f83f39bc0a4229
tree592c8da2f5babb9dccb0f4a367c690a849b75ba6
parentfab044e6daaffb8d45401cd37145affa1033c253
In warnings, say "previous declaration" rather than "first
declaration".
* src/symtab.c (redeclaration): Do that here.
* src/reader.c (record_merge_function_type): In the case of a result
type clash, report the previous declaration rather than the very first
one in the grammar file.
* tests/glr-regression.at (Missed %merge type warnings when LHS type is
declared later): Add a third declaration to check this behavior.
* tests/input.at (Incompatible Aliases): Update output.
ChangeLog
src/reader.c
src/symtab.c
tests/glr-regression.at
tests/input.at