[Bug fortran/35223] IBITS gives compiler error

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 17 01:09:00 GMT 2008



------- Comment #2 from kargl at gcc dot gnu dot org  2008-02-17 01:08 -------
(In reply to comment #0)
> hades [TEST] cat bug-ibits.f90
> program main
>   write (*, *) ibits (-1, 0, bit_size (0))
> end program main
> 

(snip)

What result do you expect?

> Compiling with g95 works fine though.

Appears g95 may have a bug.  See Sec. 13.3, 13.4, and most importantly
13.7 in the 'Final Committee Draft J3/03-007R2' of the Fortran 2003
standard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35223



More information about the Gcc-bugs mailing list