Recently there was some discussion in comp.lang.fortran newsgroup claiming a run-time bug in gfortran on compiling a simple program with the -ffe-trap=precision option. If I use -ffe-trap=foobar instead I get the expected compile-time error message with the same program:
john@johns-laptop:~/Jfh$ cat test50.f90
program test
write(,)‘a’
write(,)50.
end
john@johns-laptop:~/Jfh$ gfortran -ffpe-trap=foobar test50.f90
f951: Fatal Error: Argument to ‘-ffpe-summary’ is not valid: foobar
compilation terminated.
I was using gfortran 9.3 in a Linux ubuntu system.
The -ffpe-trap=precisiion option is not mentioned in man gfortran and does not give a compile-time error,. Is it a valid option that needs documenting or an invalid option that ought to trigger a compile-time error?