bool Ambiguous = false;
bool HasTag = false, HasFunction = false, HasNonFunction = false;
- bool HasUnresolved = false;
unsigned UniqueTagIndex = 0;
// continue at this index).
Decls[I] = Decls[--N];
} else if (isa<UnresolvedUsingDecl>(D)) {
- HasUnresolved = true;
+ // FIXME: support unresolved using decls
Decls[I] = Decls[--N];
} else {
// Otherwise, do some decl type analysis and then continue.
}
}
- // Postpone all other decisions if we have an unresolved decl, even
- // if we can prove ambiguity. We can probably do better than this.
- if (HasUnresolved) {
- ResultKind = LookupResult::FoundOverloaded;
- return;
- }
-
// C++ [basic.scope.hiding]p2:
// A class name or enumeration name can be hidden by the name of
// an object, function, or enumerator declared in the same