[clang] [clang] Implement CWG3135 - constexpr structured bindings with prvalues from tuples (PR #191880)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Mon May 4 01:11:14 PDT 2026


================
@@ -164,6 +164,9 @@ Resolutions to C++ Defect Reports
 - Clang now allows omitting ``typename`` before a template name in a
   conversion operator, implementing `CWG2413 <https://wg21.link/cwg2413>`_.
 
+- Clang now uses non-reference types for structured bindings whose initializer
+  returns a prvalue. This resolves CWG3135.
----------------
cor3ntin wrote:

```suggestion
  returns a prvalue. This resolves `CWG3145 <https://wg21.link/cwg3135>`_..
```

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


More information about the cfe-commits mailing list