[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 6: Destructuring Expansion Statements) (PR #169685)

Corentin Jabot via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jun 1 04:58:38 PDT 2026


================
@@ -3738,6 +3738,8 @@ def err_conflicting_codeseg_attribute : Error<
 def warn_duplicate_codeseg_attribute : Warning<
   "duplicate code segment specifiers">, InGroup<Section>;
 
+def err_expansion_stmt_invalid_init : Error<
+  "cannot expand expression of type %0">;
----------------
cor3ntin wrote:

Can we massage that a bit? Maybe "expression of type %0 cannot be destructured".

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


More information about the llvm-branch-commits mailing list