https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120640
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-06-13 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |ppalka at gcc dot gnu.org --- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- Confirmed, this is only a problem for redundant 'typename' outside of a template. GCC 13 correctly handles the dependent scope version of this testcase after r13-6098-g46711ff8e60d64: struct N { class A {}; int A(); }; template<class T> void f() { typename T::A a; // GCC 13+ correctly rejects } template void f<N>();