Internal compiler error in `scan_region', at except.c:2710
Richard B. Kreckel
kreckel@zino.physik.uni-mainz.de
Mon Jan 10 11:49:00 GMT 2000
Hi,
(Sorry for the last incomplete mail, if it got through...)
I have boiled down a bug in all post-2.95.2-releases (up to) snapshot
egcs-20000103 to a few lines of code, attached below. It happens as soon
as you switch on optimization. Does anybody know what's going wrong?
Regards
-rbk.
--
Richard Kreckel
<Richard.Kreckel@Uni-Mainz.DE>
< http://wwwthep.physik.uni-mainz.de/~kreckel/ >
class T_A {
public:
T_A ();
~T_A ();
protected:
long word;
};
class T_B : public T_A {
public:
T_B ();
T_B (const int wert) { word = wert; }
~T_B ();
};
struct T_C {
T_B b1;
T_B b2;
T_C () {}
T_C (const T_B & x, const T_B & y) : b1(x), b2(y) { }
};
T_C f(int a)
{ return T_C( T_B(0), (a>0 ? T_B(1) : T_B(-1)) ); }
int main(void)
{
return 0;
}
More information about the Gcc-bugs
mailing list