https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65608 Bug 65608 depends on bug 37804, which changed state.
Bug 37804 Summary: friend declaration leaks into global scope at template instantiation https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED