]> git.saurik.com Git - bison.git/commit - src/symtab.h
* src/symtab.c (symbol_check_alias_consistency): Also check
authorAkim Demaille <akim@epita.fr>
Mon, 11 Oct 2004 09:03:55 +0000 (09:03 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 11 Oct 2004 09:03:55 +0000 (09:03 +0000)
commitdf09ef2e8fc03de1bc17e9687fddd5f2ed86662c
tree145562bce1e66d1aa071bce90726a989ee5f07c3
parent2ed24dd8c7c94c492ebdff7673808e9d66f8816b
* src/symtab.c (symbol_check_alias_consistency): Also check
type names, destructors, and printers.
Reported by Alexandre Duret-Lutz.
Recode the handling of associativity and precedence in terms
of symbol_precedence_set.
Accept no redeclaration at all, not even equal to the previous
value.
(redeclaration): New.
Use it to factor redeclaration complaints.
(symbol_make_alias): Don't set the type of the alias, let
symbol_check_alias_consistency do it as for other features.
* src/symtab.h (symbol): Add new member prec_location, and
type_location.
* src/symtab.c (symbol_precedence_set, symbol_type_set): Set them.
* tests/input.at (Incompatible Aliases): New.
ChangeLog
src/symtab.c
src/symtab.h
tests/input.at