This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch,fortran] Fix PR19310 unnecessary error for overflowing results
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Date: Sun, 11 Jun 2006 11:15:33 +0200
- Subject: Re: [patch,fortran] Fix PR19310 unnecessary error for overflowing results
A few comments about the test case:
(1) is not 1.0/-0.0 illegal? If yes, it does not seem to be caught by gfortran;
(2) in the first release of the test a = exp(2000.0)/exp(1000.0) should
give a NaN and not +Infinity as in the following test:
real a, b
b=huge(a)
a=exp(b)
b=exp(b/2.0)
print *, a, b, a/b, b/a
end
you can also consider the case a = exp(1000.0)/exp(2000.0).
Dominique