[Bug fortran/63427] hwint.h:250:29: runtime error: shift exponent 64 is too large for 64-bit type 'long int'

rsandifo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 21 14:43:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63427

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-02-21
           Assignee|unassigned at gcc dot gnu.org      |rsandifo at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Caused by wi::from_mpz mishandling the wrap operation.
Related, a testcase like:

program test
  write (*), (2_8 ** 64009999_2) / 2
end program test

(compiled with -fno-range-check) writes way beyond the buffer.



More information about the Gcc-bugs mailing list