]> granicus.if.org Git - clang/commit
Push alias-declarations and alias-template declarations into scope even if
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 15 Jul 2016 20:53:25 +0000 (20:53 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 15 Jul 2016 20:53:25 +0000 (20:53 +0000)
commitab693fec046e5eb21ed4816c473bd72724209205
tree29cb59849c2985de167faaa96b2995416d32d78d
parent848b378c986629f3fce061cf71fec40fa112a086
Push alias-declarations and alias-template declarations into scope even if
they're redeclarations. This is necessary in order for name lookup to correctly
find the most recent declaration of the name (which affects default template
argument lookup and cross-module merging, among other things).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275612 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.typedef/p2-0x.cpp
test/CXX/drs/dr6xx.cpp
test/CXX/temp/temp.param/p15-cxx0x.cpp
test/Modules/submodules-merge-defs.cpp
test/SemaCXX/alias-template.cpp
test/SemaTemplate/alias-templates.cpp