@@ -4803,7 +4803,8 @@ bool Sema::checkVarDeclRedefinition(VarDecl *Old, VarDecl *New) { |
|
|
|
4803 |
4803 |
(New->getFormalLinkage() == Linkage::Internal | |
New->isInline() |
4804 |
4804 |
isa(New) | |
|
4805 |
4805 |
New->getDescribedVarTemplate() | |
New->getNumTemplateParameterLists() |
4806 |
|
- New->getDeclContext()->isDependentContext())) { |
|
|
4806 |
+ New->getDeclContext()->isDependentContext() | |
|
|
4807 |
+ New->hasAttr())) { |
|
4807 |
4808 |
// The previous definition is hidden, and multiple definitions are |
|
4808 |
4809 |
// permitted (in separate TUs). Demote this to a declaration. |
|
4809 |
4810 |
New->demoteThisDefinitionToDeclaration(); |
|