]> granicus.if.org Git - clang/commit
PR25731: namespace alias declarations can appear at block scope; ensure that we
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Dec 2015 23:24:04 +0000 (23:24 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Dec 2015 23:24:04 +0000 (23:24 +0000)
commitc0b5b91dffd6556647597bef238fbaa4dae69af0
tree50833b2e619eb9874217fd59742735ec1e8aa386
parentc11e13bcb3d4f959ac1c57c61af679dc8d586bee
PR25731: namespace alias declarations can appear at block scope; ensure that we
do scope-based lookup when looking for redeclarations of them. Add some related
missing checks for the scope-based redeclaration lookup: properly filter the
list of found declarations to match the scope, and diagnose shadowing of a
template parameter name.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CXX/temp/temp.res/temp.local/p6.cpp
test/SemaCXX/namespace-alias.cpp