From 527203e98e6c57e185ac4308631cc6286edb13d1 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sun, 29 Dec 2002 04:30:18 +0000
Subject: [PATCH] (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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);
     }
 }
 
-- 
2.47.2