summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-04 22:46:56 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-04 22:46:56 +0000
commitb96ec568715450106b4f1dd4a20c1c14e9bca6c4 (patch)
tree19500320eb1cc921c8936202a066855f39921959 /clang/lib/Sema/SemaTemplateInstantiate.cpp
parent9e2792690bd41191442cf3a65ad591a32ee9ab10 (diff)
downloadbcm5719-llvm-b96ec568715450106b4f1dd4a20c1c14e9bca6c4.tar.gz
bcm5719-llvm-b96ec568715450106b4f1dd4a20c1c14e9bca6c4.zip
Fix "using typename" and the instantiation of non-dependent using declarations.
llvm-svn: 90614
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index 122e85eaa51..6a4ac3c5628 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -1064,8 +1064,6 @@ Sema::InstantiateClass(SourceLocation PointOfInstantiation,
Invalid = true;
} else if (FieldDecl *Field = dyn_cast<FieldDecl>(NewMember))
Fields.push_back(DeclPtrTy::make(Field));
- else if (UsingDecl *UD = dyn_cast<UsingDecl>(NewMember))
- Instantiation->addDecl(UD);
} else {
// FIXME: Eventually, a NULL return will mean that one of the
// instantiations was a semantic disaster, and we'll want to set Invalid =
OpenPOWER on IntegriCloud