]> granicus.if.org Git - clang/commit
When a type's definition is instantiated, the definition becomes visible, even
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 10 Mar 2014 00:04:29 +0000 (00:04 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 10 Mar 2014 00:04:29 +0000 (00:04 +0000)
commit3e16919410c97c7f593bde2bd86be5a4a0db068a
tree0d8219833fd92cfff631183caa4c145bc60af6b4
parenta8c56f14030ffb392487bef4c8d78469beffaa41
When a type's definition is instantiated, the definition becomes visible, even
if the type's declaration was previously instantiated in an unimported module.
(For an imported type definition, this already worked, because the source
location is set to the location of the definition, but for locally-instantiated
type definitions, it did not.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203425 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiate.cpp
test/Modules/Inputs/template-specialization-visibility/a.h [new file with mode: 0644]
test/Modules/Inputs/template-specialization-visibility/b.h [new file with mode: 0644]
test/Modules/Inputs/template-specialization-visibility/c.h [new file with mode: 0644]
test/Modules/Inputs/template-specialization-visibility/d.h [new file with mode: 0644]
test/Modules/Inputs/template-specialization-visibility/e.h [new file with mode: 0644]
test/Modules/Inputs/template-specialization-visibility/module.map [new file with mode: 0644]
test/Modules/template-specialization-visibility.cpp [new file with mode: 0644]