[modules] When finding the owning module of an instantiated context in template
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 18 Oct 2017 01:41:38 +0000 (01:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 18 Oct 2017 01:41:38 +0000 (01:41 +0000)
commit17ad3ac2aacf3c38cc60c914736bd71d67eaad83
treec4e576c27a5d2990959e8171743374cb717e743d
parent1fc49627e498eeaedcc79ae301df1adf47592583
[modules] When finding the owning module of an instantiated context in template
instantiation, follow lexical parents not semantic ones: we want to find the
module where the pattern was written.

llvm-svn: 316055
clang/include/clang/Frontend/VerifyDiagnosticConsumer.h
clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
clang/lib/Sema/SemaLookup.cpp
clang/test/Modules/visibility-in-instantiation.cpp [new file with mode: 0644]