This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error in `scan_region', at except.c:2710
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Internal compiler error in `scan_region', at except.c:2710
- From: "Richard B. Kreckel" <kreckel at zino dot physik dot uni-mainz dot de>
- Date: Mon, 10 Jan 2000 20:49:39 +0100 (CET)
- Reply-To: Richard dot Kreckel at Uni-Mainz dot DE
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;
}