------- Comment #1 from burnus at gcc dot gnu dot org 2007-06-12 15:03 ------- Works with 4.1.3 20070521. Fails with 4.2.1 20070604. Fails with 4.3.0 20070612. (On x86_64 Linux)
Result is ok ("1.0 1.0") for real(4), but not for real(8) ("0.25 0.25"). -O1 is also ok, but not -O2. I used gfortran -DVECLEN=1 -DDP -O2 (and also without -DDP and with -O1.) Presumably a middle-end problem. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|fortran |middle-end Ever Confirmed|0 |1 GCC host triplet|powerpc-apple-darwin8.9.0 | Keywords| |wrong-code Known to fail| |4.2.0 4.3.0 Known to work| |4.1.3 Last reconfirmed|0000-00-00 00:00:00 |2007-06-12 15:03:55 date| | Summary|gfortran - incorrect result |[4.2, 4.3 Regression] |with -O3 |Incorrect result with -O2 Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32302