aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index 80b422e753..fd7de715db 100644
--- a/lib/AST/DeclBase.cpp
+++ b/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;