ICE caused by -O3 and fbounds-check options together

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Oct 12 22:55:00 GMT 2006


On Thu, Oct 12, 2006 at 06:27:41PM -0400, Andrew Pinski wrote:
> > 
> > > 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.
> 

This is PR 29446

-- 
Steve



More information about the Fortran mailing list