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: "pato101 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2006 14:39:31 -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 #5 from pato101 at gmail dot com 2006-03-03 14:39 -------
(In reply to comment #2)
> (In reply to comment #1)
> > Use -ffriend-injection to make it work.
>
> Note -ffriend-injection will not work in this case as -ffriend-injection is
> only for friend functions and not for friend classes.
> Anyways this is all documented on the changes page for 4.0.
> http://gcc.gnu.org/gcc-4.0/changes.html
>
OK, I'm not a C++ guru an I assume I'm wrong. Btw, I don't really understand
what injection is, and I've been unable to see what's wrong regarding what I
read at the gcc-4.0/changes.html page. I can live with that, for sure, so don't
worry; for me, knowing the fact is that kind of declaration is no longer valid
is enough.
You say that -ffriend-injection won't solve this issue. The problem is that
this syntax was common use before and I have tons of software with those
"artifacts"... is there any "compatibility option" to handle them?
Thanks for your attention.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26543