[Bug fortran/17175] set_exponent breaks with integer*8 exponent

tobi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 26 16:17:00 GMT 2004


------- Additional Comments From tobi at gcc dot gnu dot org  2004-08-26 16:16 -------
Indeed, gfc_get_intrinsic_lib_fndecl only looks at the first argument of a
function. The question is, should we rather convert the second argument to
default integer type, or if we should actually implement library functions for
all integer kinds.

I think the former is preferable, as an out of range exponent will generate an
unspecified result, so there's nothing to be lost when converting from integer*8
to integer*4 (and giving an exponent > 2*32 is calling for trouble).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17175



More information about the Gcc-bugs mailing list