ICE caused by -O3 and fbounds-check options together
Andrew Pinski
pinskia@physics.uc.edu
Thu Oct 12 22:37: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
Can someone report the bug? And later today (most likely in 2 hours or so),
I will create a C testcase.
Thanks,
Andrew Pinski
More information about the Fortran
mailing list