[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
Tue Jul 7 09:00:33 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:
Hum - right - but in that case can you move the emission of the diagnostic outside of `BuildDestructuringDecompositionDecl` - ideally in the Act function? So that the flow is logical.
Thanks
https://github.com/llvm/llvm-project/pull/169685
More information about the llvm-branch-commits
mailing list