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/17175] set_exponent breaks with integer*8 exponent


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


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