This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-980517 bug report
- To: egcs-bugs at cygnus dot com
- Subject: egcs-980517 bug report
- From: dcb at pncl dot co dot uk (David C Binderman)
- Date: Thu, 21 May 1998 20:36:57 +0100 (BST)
Hello there,
I think the following C++ code should not compile, since B is private.
class A {
int a;
class B {
int b;
};
};
int main(void)
{
A a;
A::B b;
return 0;
}
egcs-980517 with flags -O -Wall -ansi -pedantic compiles this program ok.
Machine is i586-linux, if that matters.
Regards
David Binderman MSc BSc +44 1293 534 847 dcb_AVOID_JUNK_MAIL@pncl.co.uk
There is no substitute for skill, taste and experience when programming
- Dr Stroustrup, inventor of C++