This is the mail archive of the gcc-help@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]

GCC friend decleration in 3.4.x


Hello!

I've the following problem with gcc 3.4.3

class A { void f(); }; 
class B { friend void A::f(); }; // A::f is private and therefore not 
accessable...

Now, will it stay like this in future GCC-Versions, or will it be like in the 
3.x series? Is it a bug, or a feature? How can i do a similar implementation 
with the 3.4.3 version of GCC?

Thank you,
Georg Grabler


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