]> granicus.if.org Git - clang/commit
[CXX] Templates specialization visibility can be wrong
authorSteven Wu <stevenwu@apple.com>
Thu, 19 Apr 2018 15:46:43 +0000 (15:46 +0000)
committerSteven Wu <stevenwu@apple.com>
Thu, 19 Apr 2018 15:46:43 +0000 (15:46 +0000)
commit27574719b6b29001cca54b3a745379c013bde111
tree18eead7a056c4efeafa64ad703e7def1a39f4acd
parenteb1c9dce7cca64c0f46dbfe88b1593db54b492d9
[CXX] Templates specialization visibility can be wrong

Summary:
Under some conditions, LinkageComputer can get the visibility for
ClassTemplateSpecializationDecl wrong because it failed to find the Decl
that has the explicit visibility.

This fixes:
llvm.org/bugs/pr36810
rdar://problem/38080953

Reviewers: rsmith, arphaman, doug.gregor

Reviewed By: doug.gregor

Subscribers: doug.gregor, cfe-commits

Differential Revision: https://reviews.llvm.org/D44670

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330338 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/CodeGenCXX/visibility-pr36810.cpp [new file with mode: 0644]