optimization/4889

Reichelt reichelt@igpm.rwth-aachen.de
Wed Nov 7 16:49:00 GMT 2001


Hi,

I tried to reduce the size of the provided testcase a little bit
and distilled the following 3 lines of code that still crash 3.0.2
(just compile with g++ -O):

double& f();
struct A { A (int i) { i?f():f(); } };
A a(1);

In fact they also crash 3.1 (as of 20011112)! So, being able to compile
the original testcase with 3.1 without errors just seems to be good/bad
luck.

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4889&database=gcc




More information about the Gcc-bugs mailing list