https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/196889
>From a8289340c2638db0dc00e27ffe0c3a2b8f979455 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin <[email protected]> Date: Sun, 10 May 2026 23:46:06 -0700 Subject: [PATCH] [clang][NFC] Mark CWG988 as implemented and add a test --- clang/test/CXX/drs/cwg9xx.cpp | 11 +++++++++++ clang/www/cxx_dr_status.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/clang/test/CXX/drs/cwg9xx.cpp b/clang/test/CXX/drs/cwg9xx.cpp index c8fdca3a45c3e..d7385ab6db859 100644 --- a/clang/test/CXX/drs/cwg9xx.cpp +++ b/clang/test/CXX/drs/cwg9xx.cpp @@ -169,6 +169,17 @@ enum struct E4 : int { e = static_cast<int>(E4()) }; #endif } // namespace cwg977 +namespace cwg988 { // cwg988: 2.7 +#if __cplusplus >= 201103L +void f(int& lvalue_ref, int&& rvalue_ref) { + static_assert(__is_same(decltype(lvalue_ref)&, int&), ""); + static_assert(__is_same(decltype(lvalue_ref)&&, int&), ""); + static_assert(__is_same(decltype(rvalue_ref)&, int&), ""); + static_assert(__is_same(decltype(rvalue_ref)&&, int&&), ""); +} +#endif +} // namespace cwg988 + namespace cwg990 { // cwg990: 3.5 #if __cplusplus >= 201103L struct A { // #cwg990-A diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index feef0c3770f64..add0c344b5f18 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -6693,7 +6693,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td>[<a href="https://wg21.link/dcl.type.simple">dcl.type.simple</a>]</td> <td>CD2</td> <td>Reference-to-reference collapsing with <TT>decltype</TT></td> - <td class="unknown" align="center">Unknown</td> + <td class="full" align="center">Clang 2.7</td> </tr> <tr id="989"> <td><a href="https://cplusplus.github.io/CWG/issues/989.html">989</a></td> _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
