[Bug fortran/33296] nearest(huge(1.0),1.0) gives an error
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 4 10:27:00 GMT 2007
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-09-04 10:26 -------
I think it's the expected behaviour. Other compilers emit warnings (or nothing)
for this situation or related ones (like x = 2*huge() below), we chose to emit
hard errors that can be bypassed by using -fno-range-check.
real x
x = nearest(huge(1.0),1.0)
x = 2 * huge(1.0)
print *, x
end
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |RESOLVED
GCC target triplet|powerpc-apple-darwin8 |
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33296
More information about the Gcc-bugs
mailing list