Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. alex422

    Floating-point exception using recursive function

    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.
  2. alex422

    Floating-point exception using recursive function

    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.
  3. alex422

    Floating-point exception using recursive function

    GNU Fortran (MinGW.org GCC Build-2) 9.2.0, on Windows. I'm just compiling using the terminal, no special environment.
  4. alex422

    Floating-point exception using recursive function

    Oh, I read that it works *without* the -f parameters. Well it doesn't work with them for me, any idea why that might be?
  5. alex422

    Floating-point exception using recursive function

    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.
  6. alex422

    Floating-point exception using 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...

Part and Inventory Search

Back
Top