]> granicus.if.org Git - clang/commit
PR33503: When a qualified name in a redeclaration names a prior declaration in
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 3 Jan 2018 23:03:54 +0000 (23:03 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 3 Jan 2018 23:03:54 +0000 (23:03 +0000)
commit3536cf01514107b288e5230eeafeefc0dc89ff76
tree0f133137eb6e7e91f407cd3253e8235a4f91cdb2
parentf09294c09fe7b73cd2332ff25e7f808727716f3c
PR33503: When a qualified name in a redeclaration names a prior declaration in
an inline namespace, update its semantic DeclContext to match.

We would previously get the semantic DeclContext wrong (pointing to the named
scope rather than the inline namespace within it), resulting in wrong lookup
results and linkage-related problems if the inline namespace was an anonymous
namespace.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321770 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CXX/dcl.decl/dcl.meaning/p1-0x.cpp