This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

EGCS Fortran cannot detect floating point overflow


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]