https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105667
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2022-05-19 Ever confirmed|0 |1 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Another slightly more reduced testcase: template<auto f> struct h {typedef int type;}; template<class Types> struct t{}; template<int Ts> struct crash { using Types = typename h<[]() {}>::type; template<int tt> static void f() { t<Types> b; }; }; int main() { crash<0>::f<1>(); return 0; }