https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119631
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2025-04-04 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Even this is rejected: ``` template <class T> struct outer { template <T Xs> struct inner; template <T X> struct inner { T x = X; }; }; ``` But if you comment out the first declaration of inner, it works.