Commit 75fb2acd authored by Roberto Raggi's avatar Roberto Raggi

Expand the anonymous namespace and not the enclosing namespace.

parent 14955ed3
......@@ -367,7 +367,7 @@ void LookupContext::expandNamespace(Namespace *ns,
Symbol *symbol = ns->memberAt(i);
if (Namespace *otherNs = symbol->asNamespace()) {
if (! otherNs->name()) {
expand(ns->members(), visibleScopes, expandedScopes);
expand(otherNs->members(), visibleScopes, expandedScopes);
}
} else if (UsingNamespaceDirective *u = symbol->asUsingNamespaceDirective()) {
const QList<Symbol *> candidates = resolveNamespace(u->name(), visibleScopes);
......
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