diff options
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 9dad47fb8f5..9f2e757dc2f 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -5333,18 +5333,13 @@ Sema::ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC, // If we are providing an explicit specialization of a static variable // template, make a note of that. if (PrevVarTemplate && PrevVarTemplate->getInstantiatedFromMemberTemplate()) - NewTemplate->setMemberSpecialization(); + PrevVarTemplate->setMemberSpecialization(); // Set the lexical context of this template NewTemplate->setLexicalDeclContext(CurContext); if (NewVD->isStaticDataMember() && NewVD->isOutOfLine()) NewTemplate->setAccess(NewVD->getAccess()); - if (PrevVarTemplate) - mergeDeclAttributes(NewVD, PrevVarTemplate->getTemplatedDecl()); - - AddPushedVisibilityAttribute(NewVD); - PushOnScopeChains(NewTemplate, S); AddToScope = false; |