Author: Corentin Jabot Date: 2022-11-28T23:16:04+01:00 New Revision: e6624a2f3647a36ddbcfc0740b45b849a4ecf663
URL: https://github.com/llvm/llvm-project/commit/e6624a2f3647a36ddbcfc0740b45b849a4ecf663 DIFF: https://github.com/llvm/llvm-project/commit/e6624a2f3647a36ddbcfc0740b45b849a4ecf663.diff LOG: [Clang] Update the status of mostly-editorial defect reports - CWG2644 and CWG2650 fix examples - CWG2636 updates Annex E - CWG2642 is editorial Added: Modified: clang/test/CXX/drs/dr26xx.cpp clang/www/cxx_dr_status.html Removed: ################################################################################ diff --git a/clang/test/CXX/drs/dr26xx.cpp b/clang/test/CXX/drs/dr26xx.cpp index 37d971a3ae1f2..7f590ca4cc1b2 100644 --- a/clang/test/CXX/drs/dr26xx.cpp +++ b/clang/test/CXX/drs/dr26xx.cpp @@ -27,4 +27,26 @@ void f() { // expected-note@#DR2628_CTOR {{marked deleted here}} } +} + + // dr2636: na + + // dr2642: na + +namespace dr2644 { // dr2644: yes + +auto z = [a = 42](int a) { // expected-error {{a lambda parameter cannot shadow an explicitly captured entity}} \ + // expected-note {{variable 'a' is explicitly captured here}} + return 1; +}; + +} + +namespace dr2650 { // dr2650: yes +template <class T, T> struct S {}; +template <class T> int f(S<T, T{}>*); // expected-note {{type 'X' of non-type template parameter is not a structural type}} +class X { + int m; +}; +int i0 = f<X>(0); //expected-error {{no matching function for call to 'f'}} } diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 4e7b88a87b3be..a85b966a9f955 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -15624,7 +15624,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://wg21.link/cwg2636">2636</a></td> <td>DR</td> <td>Update Annex E based on Unicode 15.0 UAX #31</td> - <td class="none" align="center">Unknown</td> + <td class="na" align="center">N/A</td> </tr> <tr class="open" id="2637"> <td><a href="https://wg21.link/cwg2637">2637</a></td> @@ -15660,7 +15660,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://wg21.link/cwg2642">2642</a></td> <td>DR</td> <td>Inconsistent use of T and C</td> - <td class="none" align="center">Unknown</td> + <td class="na" align="center">N/A</td> </tr> <tr id="2643"> <td><a href="https://wg21.link/cwg2643">2643</a></td> @@ -15672,7 +15672,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://wg21.link/cwg2644">2644</a></td> <td>DR</td> <td>Incorrect comment in example</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="2645"> <td><a href="https://wg21.link/cwg2645">2645</a></td> @@ -15708,7 +15708,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://wg21.link/cwg2650">2650</a></td> <td>DR</td> <td>Incorrect example for ill-formed non-type template arguments</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="2651"> <td><a href="https://wg21.link/cwg2651">2651</a></td> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits