https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59002 Bug 59002 depends on bug 47346, which changed state.
Bug 47346 Summary: access control for nested type is ignored in class template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47346 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED