[Bug c++/21092] friend inaccessibility
kreckel at ginac dot de
gcc-bugzilla@gcc.gnu.org
Mon Apr 18 21:08:00 GMT 2005
------- Additional Comments From kreckel at ginac dot de 2005-04-18 21:08 -------
(In reply to comment #5)
> (In reply to comment #3)
> > This sentence just says that you can't do this:
> > class A { private: struct I{}; };
> > class B { friend class A::I; };
> > because A::I isn't accessible in B.
>
> Where's that snippet from? As it stands, it's out of any context whatsoever.
Oh, sorry. Now I understand what you're referring to.
11.4/9 appears to be the relevant section in this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21092
More information about the Gcc-bugs
mailing list