[clang] [Clang][NFC] Mark 3106 as implemented. (PR #192256)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 06:32:38 PDT 2026
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/192256
>From 1b0f2a363dea531287911177d60ef27b4a23ef23 Mon Sep 17 00:00:00 2001
From: Corentin Jabot <corentinjabot at gmail.com>
Date: Wed, 15 Apr 2026 15:11:57 +0200
Subject: [PATCH] [Clang][NFC] Mark 3106 as implemented.
This was a wording clarification, but we add a test nonetheless.
---
clang/test/CXX/drs/cwg31xx.cpp | 16 ++++++++++++++++
clang/www/cxx_dr_status.html | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 clang/test/CXX/drs/cwg31xx.cpp
diff --git a/clang/test/CXX/drs/cwg31xx.cpp b/clang/test/CXX/drs/cwg31xx.cpp
new file mode 100644
index 0000000000000..66fc5ff1515b4
--- /dev/null
+++ b/clang/test/CXX/drs/cwg31xx.cpp
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -std=c++98 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++14 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++17 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++20 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++23 -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+// RUN: %clang_cc1 -std=c++2c -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected %s
+
+
+// expected-no-diagnostics
+
+namespace cwg3106 { // cwg3106: yes
+#if __cplusplus >= 201102L
+const char str[9] = R"(\u{1234})";
+#endif
+} // namespace cwg3106
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html
index cb0236b46e580..04ffa0080fce6 100755
--- a/clang/www/cxx_dr_status.html
+++ b/clang/www/cxx_dr_status.html
@@ -21563,7 +21563,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2>
<td>[<a href="https://wg21.link/lex.universal.char">lex.universal.char</a>]</td>
<td>DR</td>
<td>Redundant exclusion of (non-existent) UCNs in <I>r-char-sequence</I>s</td>
- <td class="unknown" align="center">Unknown</td>
+ <td class="full" align="center">Yes</td>
</tr>
<tr id="3107">
<td><a href="https://cplusplus.github.io/CWG/issues/3107.html">3107</a></td>
More information about the cfe-commits
mailing list