[Bug c++/14281] Regression in v3.4: friend class not working
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Wed Feb 25 15:03:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list