This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ICE caused by -O3 and fbounds-check options together
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: fxcoudert at gmail dot com (FX Coudert)
- Cc: vivekrao4 at yahoo dot com (Vivek Rao), fortran at gcc dot gnu dot org, rguenther at suse dot de, sgk at troutmask dot apl dot washington dot edu (Steve Kargl)
- Date: Thu, 12 Oct 2006 18:27:41 -0400 (EDT)
- Subject: 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