This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26543] friend class declaration inside class scope ignored
- 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: 3 Mar 2006 14:29:28 -0000
- Subject: [Bug c++/26543] friend class declaration inside class scope ignored
- References: <bug-26543-12302@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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