[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 7: Constexpr support and tests) (PR #169686)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Dec 2 19:10:29 PST 2025


Sirraide wrote:

They’re essentially all already implemented:

* [CWG3044](https://cplusplus.github.io/CWG/issues/3044.html) "Iterating expansion statements woes": This one is implemented, but note that it’s partially superseded by 3131.
* [CWG3048](https://cplusplus.github.io/CWG/issues/3048.html) "Empty destructuring expansion statements": Also implemented (though the AST representation is currently bit strange since we end up w/ an empty `DecompositionDecl`; I’m not sure we care to change that though)
* [CWG3061](https://cplusplus.github.io/CWG/issues/3061.html) "Trailing comma in an expansion-init-list" : Also implemented.
* [CWG3123](https://cplusplus.github.io/CWG/issues/3123.html) "Global lookup for begin and end for expansion statements": That one I opened, so yes, it’s implemented.
* [CWG3131](https://cplusplus.github.io/CWG/issues/3131.html) "Value categories and types for the range in iterable expansion statements": That one I just got done implementing; see https://github.com/llvm/llvm-project/pull/169684#issuecomment-3604786775 as well as some of the comments I just added to that patch.

> I'd also be very grateful if you added tests for those Core issues. Probably not right now, as the last two hasn't even been discussed in Core

Then should I make that a follow-up patch after this entire patch series is merged?



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


More information about the llvm-branch-commits mailing list