This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66480] New: FPE calling cpu_time() with -ffpe-trap=inexact
- From: "nicolasbock at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Jun 2015 23:34:57 +0000
- Subject: [Bug fortran/66480] New: FPE calling cpu_time() with -ffpe-trap=inexact
- Auto-submitted: auto-generated
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