This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17175] set_exponent breaks with integer*8 exponent
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2004 16:16:59 -0000
- Subject: [Bug fortran/17175] set_exponent breaks with integer*8 exponent
- References: <20040824203618.17175.dje@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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