Befriending a private member function

Herwig, Björn herwig@gdsys.de
Wed May 6 14:50:00 GMT 2009


Ian,

> > Could anybody give me a hint?
> 
> 
> ISO C++98 [friend.class] paragraph 7:
> 
>     A name nominated by a friend declaration shall be 
> accessible in the
>     scope of the class containing the friend declaration.

Thanks for pointing out. The Stroustrup book contains a wrong example.
I now found out, this is DR209 and GCC bug 7809:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7809
 
> Ian

Sorry for the noise.

Best,
Björn!





More information about the Gcc-help mailing list