zequipe / test_compiler

A set of tools to test the applicability of compilers for a project of developing optimization solvers
GNU General Public License v3.0
1 stars 1 forks source link

gfortran 13 is ok #2

Open jschueller opened 1 year ago

jschueller commented 1 year ago

I have gfortran 13 and everything is ok

$ gfortran --version
GNU Fortran (GCC) 13.2.1 20230801
...
===> gtest: Test completes successfully! <===

full output: a.txt

zaikunzhang commented 1 year ago

Thank you @jschueller . Yes, gtest would pass. However, on my side, make test_eqv will fail with gfortran 13.1.0. Could you check?

jschueller commented 1 year ago

it fails:

$ make test_eqv
gfortran -Ofast test_eqv.f90 && ./a.out
              NaN              NaN               NaN                                                                                   
 x <= 0.0, y <= 0.0 x <= 0.0 .eqv. y <= 0.0 x <= 0.0 .neqv. y <= 0.0
 F F F F
 Wrong!
Note: The following floating-point exceptions are signalling: IEEE_INVALID_FLAG
STOP 1
make: *** [Makefile:102: test_eqv] Error 1
jschueller commented 1 year ago

is this a known bug ?

zaikunzhang commented 1 year ago

I will not call it a bug until the gfortran developers say so. Since we are using -Ofast, gfortran is allowed to do many things. Maybe it is allowed to produce results like this. See https://fortran-lang.discourse.group/t/is-this-expected/6486 .