Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gfortran 13 is ok #2

Open
jschueller opened this issue Sep 16, 2023 · 4 comments
Open

gfortran 13 is ok #2

jschueller opened this issue Sep 16, 2023 · 4 comments

Comments

@jschueller
Copy link

jschueller commented Sep 16, 2023

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Author

is this a known bug ?

@zaikunzhang
Copy link
Collaborator

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants