https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66480
Bug ID: 66480 Summary: FPE calling cpu_time() with -ffpe-trap=inexact Product: gcc Version: 4.8.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: nicolasbock at gmail dot com Target Milestone: --- Created attachment 35733 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35733&action=edit The test program The attached code, compiled with $ gfortran -ffpe-trap=inexact test.F90 results in a SIGFPE: $ ./a.out Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. Backtrace for this error: #0 0x7FA644B29757 #1 0x7FA644B29D5E #2 0x7FA644059EEF #3 0x7FA644BF8D82 #4 0x4008A8 in MAIN__ at test.F90:? Floating point exception