diff options
author | John McCall <rjmccall@apple.com> | 2009-10-10 05:48:19 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-10-10 05:48:19 +0000 |
commit | 6e24726524c2b51b31bb4b622aa678a46b024f42 (patch) | |
tree | 18635fadba59cf37262ebf36c8ad806ad0eb8bd2 /lib/Sema/SemaTemplate.cpp | |
parent | eed3e699b581ad9e17f8147f26b882d20d65a317 (diff) |
Qualified lookup through using declarations. Diagnose a new type of ambiguity.
Split the various ambiguous result enumerators into their own enum. Tests
for most of C++ [namespace.qual].
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 8f515051bc..8a12ac1168 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -3858,9 +3858,7 @@ Sema::CheckTypenameType(NestedNameSpecifier *NNS, const IdentifierInfo &II, Referenced = *Result.begin(); break; - case LookupResult::AmbiguousBaseSubobjectTypes: - case LookupResult::AmbiguousBaseSubobjects: - case LookupResult::AmbiguousReference: + case LookupResult::Ambiguous: DiagnoseAmbiguousLookup(Result, Name, Range.getEnd(), Range); return QualType(); } |