summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-03 06:04:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-03 06:04:21 +0000
commit0257b7fbbe2e48bdc4c435a275b5daac195fb1cb (patch)
treed4defb7d38ce04672dcbe5bd460bcb38e0760fa7 /lib/Sema/SemaTemplate.cpp
parentba9186c6fca2b8dd7885c909e7b1fd76c537c4ed (diff)
Process attributes in explicit template instatiation definitions. Fixes PR11690.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index b0006e6ac2..e90821e451 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -5988,6 +5988,9 @@ Sema::ActOnExplicitInstantiation(Scope *S,
Specialization->setExternLoc(ExternLoc);
Specialization->setTemplateKeywordLoc(TemplateLoc);
+ if (Attr)
+ ProcessDeclAttributeList(S, Specialization, Attr);
+
// Add the explicit instantiation into its lexical context. However,
// since explicit instantiations are never found by name lookup, we
// just put it into the declaration context directly.