From f6503d93891233bb03fc73b5dabbe4fdec9ff34d Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 12 Jun 2024 16:31:02 +0800 Subject: [PATCH] [clang][NFC] Add a test for CWG2685 I believe it has been implemented since D139837 "Implements CTAD for aggregates P1816R0 and P2082R1", so this just claims we have already supported it. Plus an update on the dr status page. --- clang/test/CXX/drs/cwg26xx.cpp | 9 +++++ clang/www/cxx_dr_status.html | 62 ++++++++++++++++++++++++++++------ 2 files changed, 61 insertions(+), 10 deletions(-) diff --git a/clang/test/CXX/drs/cwg26xx.cpp b/clang/test/CXX/drs/cwg26xx.cpp index d3c5b5bb7b6b9..60258055e30b5 100644 --- a/clang/test/CXX/drs/cwg26xx.cpp +++ b/clang/test/CXX/drs/cwg26xx.cpp @@ -225,6 +225,15 @@ void m() { } #if __cplusplus >= 202302L + +namespace cwg2685 { // cwg2685: 17 +template +struct A { + T ar[4]; +}; +A a = { "foo" }; +} + namespace cwg2687 { // cwg2687: 18 struct S{ void f(int); diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 4c5f922e52954..a27f5a3937fae 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -12670,7 +12670,7 @@

C++ defect report implementation status

2144 - drafting + tentatively ready Function/variable declaration ambiguity Not resolved @@ -15918,7 +15918,7 @@

C++ defect report implementation status

2685 C++23 Aggregate CTAD, string, and brace elision - Unknown + Clang 17 2686 @@ -17081,7 +17081,7 @@

C++ defect report implementation status

2879 - open + drafting Undesired outcomes with const_cast Not resolved @@ -17099,13 +17099,13 @@

C++ defect report implementation status

2882 - open + tentatively ready Unclear treatment of conversion to void Not resolved 2883 - open + tentatively ready Definition of "odr-usable" ignores lambda scopes Not resolved @@ -17117,25 +17117,25 @@

C++ defect report implementation status

2885 - review + tentatively ready Non-eligible trivial default constructors Not resolved 2886 - open + tentatively ready Temporaries and trivial potentially-throwing special member functions Not resolved 2887 - open + tentatively ready Missing compatibility entries for xvalues Not resolved 2888 - open + review Missing cases for reference and array types for argument-dependent lookup Not resolved @@ -17153,9 +17153,51 @@

C++ defect report implementation status

2891 - review + tentatively ready Normative status of implementation limits Not resolved + + + 2892 + tentatively ready + Unclear usual arithmetic conversions + Not resolved + + + 2893 + open + Instantiations in discarded if constexpr substatements + Not resolved + + + 2894 + open + Functional casts create prvalues of reference type + Not resolved + + + 2895 + open + Initialization should ignore the destination type's cv-qualification + Not resolved + + + 2896 + open + Template argument deduction involving exception specifications + Not resolved + + + 2897 + open + Copying potentially-overlapping union subobjects + Not resolved + + + 2898 + open + Clarify implicit conversion sequence from cv T to T + Not resolved