https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/104573
>From 80e7ad78ba1c1f213ab514edfb81ced1c8363606 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov <serebrennikov.vladis...@gmail.com> Date: Fri, 16 Aug 2024 12:33:04 +0300 Subject: [PATCH 1/2] [clang] Add a new test for CWG2091 --- clang/test/CXX/drs/cwg20xx.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/clang/test/CXX/drs/cwg20xx.cpp b/clang/test/CXX/drs/cwg20xx.cpp index cd2f26360d4021..7509d83e3dea63 100644 --- a/clang/test/CXX/drs/cwg20xx.cpp +++ b/clang/test/CXX/drs/cwg20xx.cpp @@ -401,11 +401,34 @@ namespace cwg2083 { // cwg2083: partial #endif } -namespace cwg2091 { // cwg2091: 2.7 +namespace cwg2091 { // cwg2091: 10 template<int &> struct X; template<int &N> void f(X<N>&); int n; void g(X<n> &x) { f(x); } + +namespace GH42233 { +enum E { I }; + +class AA { }; +E EV[1] = {I}; + +template<class ENUM, const ENUM* const VALUES> +struct S +{ + template< class E, const E* const V> + friend AA& operator<<( AA& os, const S<E,V>& e ); +}; + +int f() +{ + S< E, EV > x; + + AA a; + a << x; + return 0; +} +} // namespace GH42233 } // namespace cwg2091 namespace cwg2094 { // cwg2094: 5 >From d9fba44f81807e90d56e48423817bc85f5c99bf3 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov <serebrennikov.vladis...@gmail.com> Date: Fri, 16 Aug 2024 12:34:59 +0300 Subject: [PATCH 2/2] Update `cxx_dr_status.html` --- clang/www/cxx_dr_status.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index c901e1ce0e15b3..23657431233860 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -12361,7 +12361,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td><a href="https://cplusplus.github.io/CWG/issues/2091.html">2091</a></td> <td>CD4</td> <td>Deducing reference non-type template arguments</td> - <td class="full" align="center">Clang 2.7</td> + <td class="full" align="center">Clang 10</td> </tr> <tr id="2092"> <td><a href="https://cplusplus.github.io/CWG/issues/2092.html">2092</a></td> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits