X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0fb1efaf5860efaba16b262e3d74a992eac6bbfc..d2ffe11637313569116e8a9f891785b842ddb1e9:/src/symtab.c diff --git a/src/symtab.c b/src/symtab.c index fb6a02e6..53c9f677 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -221,7 +221,7 @@ symbol_check_defined_processor (void *sym, void *null ATTRIBUTE_UNUSED) /*------------------------------------------------------------------. | 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 *symval, location loc) abort (); sym->number = symval->number = (symval->number < sym->number) ? symval->number : sym->number; + symbol_type_set (symval, sym->type_name, loc); } }