http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53778
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-06-27 15:27:10 UTC --- (In reply to comment #4) > However if I add '-finit-real=snan -ffpe-trap=invalid,zero,overflow' to the\ > flags, the line [...] For me it fails with: #3 0x419D2B in __datafield_MOD_dat_init_wind at datafield.f90:211 #4 0x41B830 in show_state at test.f90:55 Floating point exception However, the problem is in profiles.f90's profile_values, called by: function profile_deriv(handle, y) result(deriv) ... call profile_values(handle, y, deriv=deriv) end function subroutine profile_values(handle, y, deriv, value, aderiv, aderiv2) ... if(zero(handle%length)) then val(0) = 1 return end if ... if(present(value)) value = val( 0) ... end subroutine Do you spot the uninitialized variable?