[clang] [clang] Mark CWG2708, CWG2713, CWG2792 as resolved; sync CWG2947 status (PR #191174)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 16 03:16:47 PDT 2026


================
@@ -58,6 +58,25 @@ A b = {3, 4, 5};
 
 } // namespace cwg2707
 
+namespace cwg2708 { // cwg2708: yes
+#if __cplusplus >= 202002L
+void f() {
+  const int a[2](1, 2);
+  (void)a;
+}
+#endif
+} // namespace cwg2708
+
+namespace cwg2713 { // cwg2713: yes
+#if __cplusplus >= 202002L
+struct A { int x; int y; };
+void f() {
+  A const& r = {.x = 1, .y = 2};
----------------
Endilll wrote:

We also need a test with rvalue references.

https://github.com/llvm/llvm-project/pull/191174


More information about the cfe-commits mailing list