This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
EGCS Fortran cannot detect floating point overflow
- To: egcs-bugs at cygnus dot com
- Subject: EGCS Fortran cannot detect floating point overflow
- From: Michael Richmond <Michael dot A dot Richmond dot 1 at gsfc dot nasa dot gov>
- Date: Fri, 12 Feb 1999 13:59:33 -0500
EGCS Fortran cannot detect a floating point overflow, even when compiled
with the flag "-fexceptions". My test program contains the lines:
ZILCH = 0.0
CRASH = 1.0/ZILCH
I do not get an error message when I run this code, although a WRITE
statement would list the value of CRASH as "INF".
The problem also occurs in C programs compiled under EGCS.
My system is a Gateway G6-200 running Windows 98. I am using EGCS Fortran
version 1.1.1. The problem occurs under Cygwin32 version B20.1, Mingw32,
and Delorie.