]> granicus.if.org Git - clang/commit
[modules] Fix visibility checking for using declarations via ADL.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Oct 2017 01:49:57 +0000 (01:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Oct 2017 01:49:57 +0000 (01:49 +0000)
commitfa2608147089e29e2c2e41dd33784a3dedbd5265
tree3be4839aaa7a9e53a7e40e619462a22bbea3f814
parent8da894badfcde801cf20a6495cebe7400fc19f04
[modules] Fix visibility checking for using declarations via ADL.

We want to check whether the using (shadow) declaration itself is visible, not
whether its target is visible.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315408 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/Modules/adl.cpp [new file with mode: 0644]