[Bug c++/26543] friend class declaration inside class scope ignored

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 3 14:29:00 GMT 2006



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-03-03 14:29 -------
(In reply to comment #3)
> (In reply to comment #1)
> > This is invalid C++.  Use -ffriend-injection to make it work.
> > 
> Wait, why is it invalid?

This was valid pre-standard C++, ARM C++ but is no longer valid.  friends don't
inject at all.


-- 


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



More information about the Gcc-bugs mailing list