This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30981] a ** exp fails for integer exponents if exp is "-huge()-1" (endless loop)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]