[Bug c++/30248] regression: friend no longer declares classes

friedman at splode dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 18 20:15:00 GMT 2006



------- Comment #3 from friedman at splode dot com  2006-12-18 20:14 -------
I think the -ffriend-injection option should be the default as it conforms to
the ISO standard.  Please reopen.

C++ standard §11.4 (Friends) ¶7:

"A name nominated by a friend declaration shall be accessible in the scope of
the class containing the friend declaration. The meaning of the friend
declaration is the same whether the friend declaration appears in the private,
protected or public (9.2) portion of the class member-specification."


-- 

friedman at splode dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |friedman at splode dot com


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



More information about the Gcc-bugs mailing list