[Bug fortran/35223] IBITS gives compiler error
jvdelisle at verizon dot net
gcc-bugzilla@gcc.gnu.org
Sun Feb 17 00:22:00 GMT 2008
------- Comment #1 from jvdelisle at verizon dot net 2008-02-17 00:21 -------
Subject: Re: New: IBITS gives compiler error
phl at kth dot se wrote:
> hades [TEST] cat bug-ibits.f90
> program main
> write (*, *) ibits (-1, 0, bit_size (0))
> end program main
>
>
> hades [TEST] gfortran bug-ibits.f90
> bug-ibits.f90:2.22:
>
> write (*, *) ibits (-1, 0, bit_size (0))
> 1
> Error: Result of IBITS overflows its kind at (1)
Use -fno-range-check when you compile.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35223
More information about the Gcc-bugs
mailing list