This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14281] Regression in v3.4: friend class not working


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]