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: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2007 10:26:56 -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 #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