This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ language lawyer question
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 30 Sep 2003 00:41:46 +0200 (CEST)
- Subject: C++ language lawyer question
Current mainline issues the following error
x.cc:2: error: `void A::a()' is private
x.cc:6: error: within this context
for this snippet:
class A {
void a();
};
class B {
friend void A::a();
};
I'm not a language lawyer, but is this really correct? (Intuitively, it
seems quite backwards.)
Gerald
--
Gerald Pfeifer (Jerry) gerald@pfeifer.com http://www.pfeifer.com/gerald/