https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118056
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE with pack indexing with |ICE with pack indexing
|index_sequence |inside a templated lamdba
Last reconfirmed| |2024-12-17
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced down to just:
```
void operate_one(const int) {}
template<typename ...T>
void operate_multi(T... args)
{
[&]<int idx>()
{
::operate_one(args...[idx]);
}.template operator()<0>();
}
int main()
{
::operate_multi(0);
}
```
The packed index is not being resolved it seems.