https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94644 Bug 94644 depends on bug 41437, which changed state.
Bug 41437 Summary: No access control for classes in template functions https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41437 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED