This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26783] friend functions defined in-class not added to enclosing namespace
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2006 16:15:58 -0000
- Subject: [Bug c++/26783] friend functions defined in-class not added to enclosing namespace
- References: <bug-26783-11044@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-21 16:15 -------
Friend functions are not injected as declarations.
See http://gcc.gnu.org/gcc-4.1/changes.html.
This is invalid C++. Use -ffriend-injection to get back the old behavior.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26783