[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for `%token <type> FOO "bar"' bug
From: |
Paul Eggert |
Subject: |
patch for `%token <type> FOO "bar"' bug |
Date: |
Sat, 28 Dec 2002 20:31:41 -0800 (PST) |
I installed this patch. I suspect that there may be other, similar
bugs (e.g. with printers and destructors? prec? assoc?) but I'm not
familiar enough with the code to see them now.
2002-12-28 Paul Eggert <address@hidden>
* src/symtab.c (symbol_make_alias): Set type of SYMVAL to be
that of SYM's type. This fixes Debian bug 168069, reported by
Thomas Olsson.
--- src/symtab.c 13 Dec 2002 08:42:03 -0000 1.54
+++ src/symtab.c 29 Dec 2002 04:30:18 -0000 1.55
@@ -221,7 +221,7 @@ symbol_check_defined_processor (void *sy
/*------------------------------------------------------------------.
| Declare the new symbol SYM. Make it an alias of SYMVAL, and type |
-| them with TYPENAME. |
+| SYMVAL with SYM's type. |
`------------------------------------------------------------------*/
void
@@ -247,6 +247,7 @@ symbol_make_alias (symbol *sym, symbol *
abort ();
sym->number = symval->number =
(symval->number < sym->number) ? symval->number : sym->number;
+ symbol_type_set (symval, sym->type_name, loc);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- patch for `%token <type> FOO "bar"' bug,
Paul Eggert <=