]> granicus.if.org Git - clang/commit
[Sema] ADL: Associated namespaces for class types and enumeration types (CWG 1691)
authorBruno Ricci <riccibrun@gmail.com>
Mon, 22 Apr 2019 12:19:00 +0000 (12:19 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Mon, 22 Apr 2019 12:19:00 +0000 (12:19 +0000)
commit0ddd57721ee69d64873b580ca02cecf8335811a5
treea19871c3d97c2a4b4052eafc30c71a1aef52543e
parent61719b50c5d25ce03abdb9a9ed9e2ccb57496069
[Sema] ADL: Associated namespaces for class types and enumeration types (CWG 1691)

CWG 1691 changed the definition of the namespaces associated with a class
type or enumeration type.

For a class type, the associated namespaces are the innermost enclosing
namespaces of the associated classes. For an enumeration type, the associated
namespace is the innermost enclosing namespace of its declaration.

This also fixes CWG 1690 and CWG 1692.

Differential Revision: https://reviews.llvm.org/D60573

Reviewed By: rjmccall, rsmith

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358882 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/CXX/basic/basic.lookup/basic.lookup.argdep/p2-associated-namespaces-classes.cpp
test/CXX/drs/dr16xx.cpp