This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30694] minval/maxval with +/-Inf
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2007 23:57:55 -0000
- Subject: [Bug libfortran/30694] minval/maxval with +/-Inf
- References: <bug-30694-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #23 from kargl at gcc dot gnu dot org 2007-10-17 23:57 -------
(In reply to comment #22)
> Well this is just one little opinion:
>
> There is no way that it is realistic to get a valid number out of a NaN
> or a group of NaNs. It can only be NaN.
Read the hypot man page.
hypot(infinity, v) = hypot(v, infinity) = +infinity for all v, including
NaN.
So one can get a non-NaN when an NaN is involved in a computation.
For the task at hand, I think gfortran should be compatible with either
g95 or Intel, and because g95 and gfortran already agree the decision is
moot.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694