This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

nested class & local class & virtual fn together broken ?



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]