Thank you for testing all this out!
I now tried it on a virtual Machine running on Linux (Ubuntu, with GNU Fortran 9.3.0) and had no issues there. I can use that as a workaround for now at least. It really is strange though.
I actually already tried different compiler versions (forgot to mention this before), the 8.1.0 earlier and the 9.2.0 now, I get the error with both versions.
And I also get the error with your code mikrom.
Yes, the problem is that it raises the error when using those debugging options. I have a code that I want to check for floating point exceptions that uses a recursive function. So I can't check if there are any actual floating point errors, since it just stops on that recursive function.
Hi all,
I'm using the GNU compiler (gfortran) with the debugging options -finit-real=snan and -ffpe-trap=invalid. For a program with any real function that is using a separate result/return value (see example below) I get a floating-point exception (erroneous arithmetic operation). I don't...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.