This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61002] Can't divide by 0
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 May 2014 22:17:48 +0000
- Subject: [Bug fortran/61002] Can't divide by 0
- Auto-submitted: auto-generated
- References: <bug-61002-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61002
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2014-05-01
Ever confirmed|0 |1
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Another way to get Infinity or NaN can be achieved with the following code
(which traps at run time when compiled with -ffpe-trap=invalid)
real :: x, y, z
x = 0.0
y = 1.0/x
z = log(-y)
print *, y, z
end
If there is no objection I'll close this PR as INVALID in a couple of days.