https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105924
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |kargl at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from kargl at gcc dot gnu.org --- Why do you thing that you should not get an exception? e = -400 e*e = 160000 -e*e = -160000 exp(-e*e) = exp(-160000) <-- This is going to underflow to zero. You specifically asked gfortran to signal an exception if underflow occurs with the -ffpe-trap=underflow option. The underflow threshold occurs at x = -745 for exp(x).