diff options
author | John McCall <rjmccall@apple.com> | 2010-12-18 03:30:47 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-12-18 03:30:47 +0000 |
commit | 7f1b98760d419a09b2261c1ef901f6bc1ff33e19 (patch) | |
tree | d3968efbcb1e3af57942e336b9634200ff838ddd /lib/Sema/SemaTemplate.cpp | |
parent | 472ccff00cdbcd095c3ba933b9e3f202719f118f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 5df84d66a4..5819362e76 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/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 |