https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91706
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- template <bool> struct A; template <typename = int> struct B; struct C { template <typename> static int c (); }; template <class T> struct D : C { using c = decltype (c<T>); using E = typename A<c::g>::E; }; D<B<>> g; Without -g this is a accepts-invalid.