[Bug c++/119346] ICE: in tsubst_pack_expansion, at cp/pt.cc:13899 when using fold expression with a lambda without a pack
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 18 02:47:30 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119346
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2025-03-18
Summary|ICE: in |ICE: in
|tsubst_pack_expansion, at |tsubst_pack_expansion, at
|cp/pt.cc:13899 |cp/pt.cc:13899 when using
| |fold expression with a
| |lambda without a pack
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Removing the outter lambda:
```
template <int=0>
int f(){
return (..., []<int... x> { x; });
}
int g = f<>();
```
More information about the Gcc-bugs
mailing list