This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14281] Regression in v3.4: friend class not working
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2004 15:03:35 -0000
- Subject: [Bug c++/14281] Regression in v3.4: friend class not working
- References: <20040225005221.14281.s_gccbugzilla@nedprod.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-02-25 15:03 -------
Well, ICC/EDG might be wrong, especially if you use such an old version.
Please, let's not close bugs only because another compiler behaves differently,
even if it's EDG.
Anyway, this bug is indeed invalid because of [class.friend]/2 in the C++
Standard, which says: "Also, because the base-clause of the friend class is not
part of its member declarations, the base-clause of the friend class cannot
access the names of the private and protected members from the class granting
friendship."
So GCC is indeed correct.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14281