https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59002 Bug 59002 depends on bug 45011, which changed state.
Bug 45011 Summary: template function specialization: does not respect access specifier https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45011 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED