]> granicus.if.org Git - clang/commit
[modules] Properly look up the owning module for an instantiation of a merged template.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Apr 2017 01:36:43 +0000 (01:36 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Apr 2017 01:36:43 +0000 (01:36 +0000)
commit203678e980f444ff43be3e12f758a125908731cc
tree96f2a1bdacb447366fecd631e24fb25d9366e9e8
parente4aaa7242ec5b53686c53a8ab469c86ef122c8ee
[modules] Properly look up the owning module for an instantiation of a merged template.

When looking for the template instantiation pattern of a templated entity,
consistently select the definition of the pattern if there is one. This means
we'll pick the same owning module when we start instantiating a template that
we'll later pick when determining which modules are visible during that
instantiation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300650 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
lib/AST/DeclCXX.cpp
lib/Sema/SemaLookup.cpp
test/Modules/Inputs/template-default-args/a.h
test/Modules/template-default-args.cpp