egcs-980115 on alphaev56-dec-osf4.0b and -O bug

David Binderman davidb@msi-uk.com
Wed Jan 21 01:16:00 GMT 1998


Hello there,

The following code

class A
{
public:
	class B {
	public:
		virtual int f1();
	};
};

void
f2()
{
	class C : public A::B {
	public:
		virtual int f1() { return 1 + A::B::f1(); };
	};
};

compiled with -O by egcs-980115 on machine alphaev56-dec-osf4.0b gives

hw97.cc: In method `int f2()::C::f1()':
hw97.cc:19: Error: Internal compiler error.
hw97.cc:19: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.

No i.c.e. if I compile without -O, so I have a workaround.

David C Binderman MSc BSc (Hons)		+44 171 971 8765
contracting at Mobile Systems International in the Docklands, London, England



More information about the Gcc-bugs mailing list