This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
nested class & local class & virtual fn together broken ?
- To: egcs-bugs at cygnus dot com
- Subject: nested class & local class & virtual fn together broken ?
- From: David C Binderman <dcb at pncl dot co dot uk>
- Date: Fri, 17 Jul 1998 20:47:02 +0100 (BST)
Hello there,
For the following code on Linux/Alpha,
struct A {
struct B {
public:
virtual int f();
};
};
int A::B::f()
{
return 1;
}
void
f2()
{
struct D : public A::B {
public:
virtual int f() {return 3 + A::B::f();}
};
}
I got
jan20c.cc:22: Error: Internal compiler error.
jan20c.cc:22: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.
You asked for it, you got it. It crashes at decl2.c, line 2460 in the
980715 snapshot.
Regards
David C Binderman MSc BSc +44 1293 534847 dcb@pncl.co.uk