This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30981] a ** exp fails for integer exponents if exp is "-huge()-1" (endless loop)
- 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: 27 Feb 2007 20:46:49 -0000
- Subject: [Bug fortran/30981] a ** exp fails for integer exponents if exp is "-huge()-1" (endless loop)
- References: <bug-30981-11733@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from kargl at gcc dot gnu dot org 2007-02-27 20:46 -------
(In reply to comment #5)
> Also isn't -huge()-1 undefined code for Fortran?
-huge()-1 can be defined in Fortran. The problem
comes when one tries to use that value in, e.g.,
IABS() because the standard prohibits calling an
intrinsic that must return a value outside of its
defined range.
I'll also note that -pedantic will reject -huge()-1
as being outside the symmetric range of the model
numbers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30981