[Bug c++/58054] 11.3 Friends, example from standard not compiled

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 2 06:57:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58054

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like they changed how base classes are handled in C++ for C++11.
98 says this:
[class.friend]/2 

"Also, because the base-clause of the friend class is not 
part of its member declarations, the base-clause of the friend class cannot 
access the names of the private and protected members from the class granting 
friendship."

Or is this just in a need for a defect report.



More information about the Gcc-bugs mailing list