This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33296] nearest(huge(1.0),1.0) gives an error
- 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: 7 Sep 2007 16:12:31 -0000
- Subject: [Bug fortran/33296] nearest(huge(1.0),1.0) gives an error
- References: <bug-33296-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from kargl at gcc dot gnu dot org 2007-09-07 16:12 -------
If this is case 2
real x
x = huge(1.0)
x = nearest(x,1.0)
end
and this is case 1
real x
x = nearest(huge(1.0),1.0)
end
then the answers are
> BTW is it normal that gfortran_nearest_r4 (3.4...4e+38, 1.0e+0) is not
> computed at the optimized level in the second case, while it is done
> in the first one?
Yes.
> Is this a bug?
No.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33296