This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE caused by -O3 and fbounds-check options together


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]