ICE caused by -O3 and fbounds-check options together

FX Coudert fxcoudert@gmail.com
Thu Oct 12 22:30:00 GMT 2006


> I cannot reproduce this with
> GNU Fortran 95 (GCC) 4.2.0 20061009 (experimental)
> on amd64-*-freebsd.

As suggested by Andrew, I can reproduce it on x86_64-linux with -m32,  
as well as i686-linux. Both compilers are up-to-date trunk.

The testcase can be reduced still a bit further to:

function abc(n)
integer :: xsd(n), abc(size(xsd),n), i, j, n
do i=1,2
    do j=1,3
       if (i /= j) then
          abc(1,1) = 0
       else
          abc(1,j) = xsd(1)
       end if
    end do
end do
end function abc


FX



More information about the Fortran mailing list