https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117345
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |3.4.6 Keywords|error-recovery | --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced down to (making it more C++98 like, removing the `decltype(auto)`): ``` struct X { template<typename T> static void g0(T x); }; template<typename U> class A { friend void X::g0<A<U> >(A<U> = 0); }; ``` we started to rejecting default arguments for friends (without -fpermissive) in GCC 9. But the ICE has been there since at least GCC 3.4.6, I can't test any older though.