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

Reply via email to