GCC friend decleration in 3.4.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux