This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC friend decleration in 3.4.x
- From: Georg Grabler <ggrabler at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 25 Dec 2004 17:48:04 +0000
- Subject: GCC friend decleration in 3.4.x
- Reply-to: ggrabler at gmail dot com
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