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]

egcs-980205 -O3 on i386



Hello there,

Using egcs-980205 the following G++ code, compiled with -O3, on
configuration i486-pc-linux-gnulibc1 produces internal compiler error

# include <stdlib.h>

int flag;

void f1()
{
	class A1 {
	public:
		A1() { flag++; }
	};
	A1 a;
}

void f2()
{
	class K1 {
	public:
		K1() { flag++; }
		class K2 {
		public:
			K2() { flag++; }
		} obj_1;
	};
	K1 obj_2;
}

feb7b.cc: In function `void f2()':
feb7b.cc:27: Error: Internal compiler error.
feb7b.cc:27: Error: Please submit a full bug report to `egcs-bugs@cygnus.com'.

You asked for it, you got it.

Regards

David C Binderman MSc BSc	dcb@pncl.co.uk

RIP - Frank Zappa, Peter Cook, Willie Rushton, John Wells, ...
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++



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