summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-10-10 05:48:19 +0000
committerJohn McCall <rjmccall@apple.com>2009-10-10 05:48:19 +0000
commit6538c930503aa2733eed38a83f906694e9af87b9 (patch)
tree561329b80ebc9e02063aaf6679b3a63f39ba9d7c /clang/lib/Sema/SemaTemplate.cpp
parentb8120770b447477b68047abecf07ce97b9693940 (diff)
downloadbcm5719-llvm-6538c930503aa2733eed38a83f906694e9af87b9.tar.gz
bcm5719-llvm-6538c930503aa2733eed38a83f906694e9af87b9.zip
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]. llvm-svn: 83700
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 8f515051bc3..8a12ac11684 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud