llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) <details> <summary>Changes</summary> I was wrong: The purpose of CWG2685 is to avoid brace elision on string literals and we should be rejecting the case. Reverts llvm/llvm-project#<!-- -->95206 --- Full diff: https://github.com/llvm/llvm-project/pull/95389.diff 2 Files Affected: - (modified) clang/test/CXX/drs/cwg26xx.cpp (-9) - (modified) clang/www/cxx_dr_status.html (+1-1) ``````````diff diff --git a/clang/test/CXX/drs/cwg26xx.cpp b/clang/test/CXX/drs/cwg26xx.cpp index fee3ef16850bf..2b17c8101438d 100644 --- a/clang/test/CXX/drs/cwg26xx.cpp +++ b/clang/test/CXX/drs/cwg26xx.cpp @@ -225,15 +225,6 @@ void m() { } #if __cplusplus >= 202302L - -namespace cwg2685 { // cwg2685: 17 -template <class T> -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 8c79708f23abd..5e2ab06701703 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -15918,7 +15918,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://cplusplus.github.io/CWG/issues/2685.html">2685</a></td> <td>C++23</td> <td>Aggregate CTAD, string, and brace elision</td> - <td class="full" align="center">Clang 17</td> + <td class="unknown" align="center">Unknown</td> </tr> <tr class="open" id="2686"> <td><a href="https://cplusplus.github.io/CWG/issues/2686.html">2686</a></td> `````````` </details> https://github.com/llvm/llvm-project/pull/95389 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits