https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112775
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2023-12-02 Status|UNCONFIRMED |NEW Keywords| |diagnostic --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. What is interesting is if we don't use -pedantic-errors, the following is accepted: ``` template <class T, T a, T b> class A; template <auto n> class A<decltype(n), n, n> {}; A<int, 1, 1> b; ``` And even more if we have 2 different values for the 2/3rd arguments, it is rejected as an incomplete class.