From 154825bdf6fb5ec5b4cd7d53cf93d68b185ca55d Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Fri, 7 Apr 2023 17:57:09 +0400 Subject: [PATCH] [clang] Mark CWG562 as N/A [[https://wg21.link/p1787 | P1787]]: CWG562 is resolved by defining lookup as occurring from a program point. Wording: A single search in a scope S for a name N from a program point P finds all declarations that precede P to which any name that is the same as N ([basic.pre]) is bound in S. ([basic.lookup]/2) Reviewed By: #clang-language-wg, cor3ntin, shafik Differential Revision: https://reviews.llvm.org/D147554 --- clang/test/CXX/drs/dr5xx.cpp | 3 +++ clang/www/cxx_dr_status.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/test/CXX/drs/dr5xx.cpp b/clang/test/CXX/drs/dr5xx.cpp index b5b7be1..d75b1b5 100644 --- a/clang/test/CXX/drs/dr5xx.cpp +++ b/clang/test/CXX/drs/dr5xx.cpp @@ -3,6 +3,7 @@ // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++17 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++20 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -std=c++2b %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // FIXME: This is included to avoid a diagnostic with no source location // pointing at the implicit operator new. We can't match such a diagnostic @@ -643,6 +644,8 @@ namespace dr561 { // dr561: yes } } +// dr562: na + namespace dr564 { // dr564: yes extern "C++" void f(int); void f(int); // ok diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 8d3268b..7cbb729 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -3413,7 +3413,7 @@ and POD class 562 CD6 qualified-ids in non-expression contexts - Unknown + N/A 563 -- 2.7.4