summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 80b422e7538..fd7de715db7 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -212,6 +212,7 @@ unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) {
// Aren't looked up?
case UsingDirective:
case ClassTemplateSpecialization:
+ case ClassTemplatePartialSpecialization:
return 0;
}
}
@@ -399,6 +400,9 @@ bool DeclContext::isDependentContext() const {
if (isFileContext())
return false;
+ if (isa<ClassTemplatePartialSpecializationDecl>(this))
+ return true;
+
if (const CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(this))
if (Record->getDescribedClassTemplate())
return true;
OpenPOWER on IntegriCloud