summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-12-18 03:30:47 +0000
committerJohn McCall <rjmccall@apple.com>2010-12-18 03:30:47 +0000
commit659a337c749721bd12484e50b43b1f8f3febb26b (patch)
treea83781d506d2b2fd4c2d3eb44a310de8b9ff31d1 /clang/lib/Sema/SemaTemplate.cpp
parent1fa7958eaa9836a2598be622ca0229cc46580bb5 (diff)
downloadbcm5719-llvm-659a337c749721bd12484e50b43b1f8f3febb26b.tar.gz
bcm5719-llvm-659a337c749721bd12484e50b43b1f8f3febb26b.zip
Apply attributes to explicit specializations. Specializations which
don't provide their own explicit visibility attributes should get them from the template. Fixes rdar://problem/8778497. llvm-svn: 122136
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 5df84d66a4a..5819362e768 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -4343,6 +4343,9 @@ Sema::ActOnClassTemplateSpecialization(Scope *S, unsigned TagSpec,
}
}
+ if (Attr)
+ ProcessDeclAttributeList(S, Specialization, Attr);
+
// Build the fully-sugared type for this class template
// specialization as the user wrote in the specialization
// itself. This means that we'll pretty-print the type retrieved
OpenPOWER on IntegriCloud