[clang] 1fdc553 - [clang] Add test for CWG2091 "Deducing reference non-type template arguments" (#100765)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 10:03:20 PDT 2024
Author: Vlad Serebrennikov
Date: 2024-08-05T21:03:16+04:00
New Revision: 1fdc553e9734dd0655778e67ba02823f8647bd9b
URL: https://github.com/llvm/llvm-project/commit/1fdc553e9734dd0655778e67ba02823f8647bd9b
DIFF: https://github.com/llvm/llvm-project/commit/1fdc553e9734dd0655778e67ba02823f8647bd9b.diff
LOG: [clang] Add test for CWG2091 "Deducing reference non-type template arguments" (#100765)
https://cplusplus.github.io/CWG/issues/2091.html
Added:
Modified:
clang/test/CXX/drs/cwg20xx.cpp
clang/www/cxx_dr_status.html
Removed:
################################################################################
diff --git a/clang/test/CXX/drs/cwg20xx.cpp b/clang/test/CXX/drs/cwg20xx.cpp
index fdd31845d5e0d..cd2f26360d402 100644
--- a/clang/test/CXX/drs/cwg20xx.cpp
+++ b/clang/test/CXX/drs/cwg20xx.cpp
@@ -401,6 +401,13 @@ namespace cwg2083 { // cwg2083: partial
#endif
}
+namespace cwg2091 { // cwg2091: 2.7
+template<int &> struct X;
+template<int &N> void f(X<N>&);
+int n;
+void g(X<n> &x) { f(x); }
+} // namespace cwg2091
+
namespace cwg2094 { // cwg2094: 5
struct A { int n; };
struct B { volatile int n; };
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index 6aaacab5b5876..b8b733dbfa716 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="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Clang 2.7</td>
</tr>
<tr id="2092">
<td><a href="https://cplusplus.github.io/CWG/issues/2092.html">2092</a></td>
More information about the cfe-commits
mailing list