This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
what is wrong here?
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: what is wrong here?
- From: dvv at dvv dot ru (Dima Volodin)
- Date: Fri, 02 Jul 1999 02:25:27 GMT
- Organization: Huh?
267_dv@lazybones: cat bug.cc
namespace N {
class C {
friend void ::f ();
int m;
} c;
} // namespace N
void
f () {
N::c.m = 0;
}
268_dv@lazybones: g++ -S bug.cc
bug.cc:4: parse error before `('
bug.cc: In function `void f()':
bug.cc:5: `int N::C::m' is private
bug.cc:12: within this context
269_dv@lazybones: g++ -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/gcc-2.95/specs
gcc version gcc-2.95 19990629 (prerelease)