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)
commit3cbf3f1f597e7ba95a2c8161d8b14a9b8a4e904b
treeb27ba22691e5c9a8acb7e8ba3ba57fa4e3405e9d
parentf52a899f4aedc5770c5af0a2343bfd1e50385400
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).

llvm-svn: 275612
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/dcl.dcl/dcl.spec/dcl.typedef/p2-0x.cpp
clang/test/CXX/drs/dr6xx.cpp
clang/test/CXX/temp/temp.param/p15-cxx0x.cpp
clang/test/Modules/submodules-merge-defs.cpp
clang/test/SemaCXX/alias-template.cpp
clang/test/SemaTemplate/alias-templates.cpp