c/6964: Internal compiler error using -O2 but ok using -O0

Reichelt reichelt@igpm.rwth-aachen.de
Wed Jun 12 07:59:00 GMT 2002


Hi,

the testcase can be reduced to the following code snippet
(which even fails with "gcc -O -c"):

------------------------------snip here--------------------------
float foo (void)
{
    float x[2];
    return x[1];
}
------------------------------snip here--------------------------

The bug is a regression from 3.0.x and is present in 3.1 and the main
trunk (gcc 3.2 20020609) - checked on a i686-pc-linux-gnu.

Greetings,
Volker Reichelt

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




More information about the Gcc-bugs mailing list