Oops! check the symbol's name :-)

This commit is contained in:
Roberto Raggi
2009-02-19 18:31:46 +01:00
parent 47f27ee7f5
commit 4a259547fc

View File

@@ -277,7 +277,7 @@ static void closure(const Location &loc,
Scope *scope = symbol->members();
for (Symbol *symbol = scope->lookat(id); symbol; symbol = symbol->next()) {
if (! symbol->isNamespace())
if (symbol->name() != name || ! symbol->isNamespace())
continue;
const Location l(symbol);