Linux/ Alpha EV56 egcs 980921 -O bug ?

David C Binderman dcb@pncl.co.uk
Sun Sep 27 12:11:00 GMT 1998


Hello there,

The following code, when compiled by egcs-980921 with flag -O on
machine alphaev56-unknown-linux-gnu

int main(void)
{
	struct A {
		virtual void f() { };
		};
	return 0;
}

produces

jul17a.cc: In method `void main()::A::f()':
jul17a.cc:5: Error: Internal compiler error.
jul17a.cc:5: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.

I find that the compiler crashes around line 1022 of file regclass.c,
but the code there looks innocent to me.

I've got a few other test cases which crash in the same place, all of
which feature local classes.

The code above compiles fine without -O, so I have a workaround.

Regards

David C Binderman MSc BSc	+44 1293 534847		dcb@pncl.co.uk




More information about the Gcc-bugs mailing list