X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/203b9274149813e3ad763f1b800c83dcff07237f..dd60572a8b54ebc51421448f09f83f39bc0a4229:/src/symtab.c diff --git a/src/symtab.c b/src/symtab.c index a90d00b3..b71a3fba 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -108,7 +108,7 @@ static void redeclaration (symbol* s, const char *what, location first, location second) { complain_at (second, _("%s redeclaration for %s"), what, s->tag); - complain_at (first, _("first declaration")); + complain_at (first, _("previous declaration")); } @@ -158,7 +158,7 @@ symbol_printer_set (symbol *sym, const char *printer, location loc) if (printer) { if (sym->printer) - redeclaration (sym, "%printer", sym->destructor_location, loc); + redeclaration (sym, "%printer", sym->printer_location, loc); sym->printer = printer; sym->printer_location = loc; }