diff options
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index d31cf0f010..8bc9eb396e 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -163,7 +163,7 @@ static bool shouldConsiderTemplateLV(const FunctionDecl *fn) { } static bool shouldConsiderTemplateLV(const ClassTemplateSpecializationDecl *d) { - return !d->hasAttr<VisibilityAttr>(); + return !d->hasAttr<VisibilityAttr>() || d->isExplicitSpecialization(); } static LinkageInfo getLVForNamespaceScopeDecl(const NamedDecl *D, |