[Bug c++/21092] friend inaccessibility

kreckel at ginac dot de gcc-bugzilla@gcc.gnu.org
Mon Apr 18 21:04:00 GMT 2005


------- Additional Comments From kreckel at ginac dot de  2005-04-18 21:04 -------
(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.

-- 


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



More information about the Gcc-bugs mailing list