https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59002 Bug 59002 depends on bug 90925, which changed state.
Bug 90925 Summary: gcc allows calling private overridden operators https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90925 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE