https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65608 Bug 65608 depends on bug 115616, which changed state.
Bug 115616 Summary: c++20: Friend-injecting a template function causes an ICE if you inject after trying to instantiate that function https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115616 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED