From: Brad Beckmann Date: Mon, 20 Jul 2015 14:15:18 +0000 (-0500) Subject: slicc: fix error in conflicing symbol declaration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=848861a17d72b5c555b0b36d594cc66ac1de8c12;p=gem5.git slicc: fix error in conflicing symbol declaration --- diff --git a/src/mem/slicc/symbols/SymbolTable.py b/src/mem/slicc/symbols/SymbolTable.py index ea470ab7d..844e4c63f 100644 --- a/src/mem/slicc/symbols/SymbolTable.py +++ b/src/mem/slicc/symbols/SymbolTable.py @@ -70,7 +70,7 @@ class SymbolTable(object): for sym_map in self.sym_map_vec: if id in sym_map: - if type(self.sym_map_vec[0][id]) != type(sym): + if type(sym_map[id]) != type(sym): sym.error("Conflicting declaration of Symbol '%s'", id) # FIXME - warn on masking of a declaration in a previous frame