]> granicus.if.org Git - clang/commit
AST: Fix visibility calculation for VarTemplateSpecializationDecl
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 29 Apr 2014 07:32:26 +0000 (07:32 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 29 Apr 2014 07:32:26 +0000 (07:32 +0000)
commit4f5189a08b004b38aeffa485fc7217d8929e9ab3
tree4046088fe7d75ff560f9696059563655c26ad9f9
parent69c9612d1ae89052fc8e379aeb060c102d842181
AST: Fix visibility calculation for VarTemplateSpecializationDecl

It is possible that a variable template specialization might not have a
VisibilityAttr attached to it while the template that it specializes
does, in fact, have one.

We should consider the template in such cases.

This fixes PR19597.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207498 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/CodeGenCXX/const-init-cxx1y.cpp