https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118271
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Friend of operator thinking |Friend of operator thinking |the injected name is the |the injected name is the |name of private base class |name of private/protected |constructor |base class constructor --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- More complete testcase: ``` class A{}; struct B { operator A *() const; }; struct C : protected A { friend B::operator A *() const; }; ``` s/protected// and the access error is gone even.