https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126124
Bug ID: 126124
Summary: ICE on pack expansion through statement expression
Product: gcc
Version: 16.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kengusername at proton dot me
Target Milestone: ---
This program fails to compile on gcc 16.1
https://godbolt.org/z/6jG4dMa4T
```
template<auto = 0> consteval auto foo() {
int arr[] {};
( ({auto [...p] = arr; p;}), ...);
}
static_assert(foo());
```