This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22378] [regression 4.0.1 -> 4.0.0,3.4.x] Friend decl ceases to declare class
- 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: 8 Jul 2005 19:53:58 -0000
- Subject: [Bug c++/22378] [regression 4.0.1 -> 4.0.0,3.4.x] Friend decl ceases to declare class
- References: <20050708195057.22378.John@xza5.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-08 19:53 -------
The code is in fact invalid.
friend should not inject the class at all.
The reason why we did not have a deprecated period or allow it with -fpermissive is because we
actually got a bug report about accepting this invalid code.
Just add the forward declaration.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22378