Commit 4a259547 authored by Roberto Raggi's avatar Roberto Raggi

Oops! check the symbol's name :-)

parent 47f27ee7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment