https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116567
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-09-02 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Note the ICE only happens with lambdas as the default argument, using an integer or a pointer is fine. There might be a dup of this bug out there too.