On Fri, Apr 22, 2005 at 10:26:25AM -0400, Kazu Hirata wrote:
> Hi Rainer and Steve,
> 
> > | 4.1.0 20050419 (experimental) (i386-pc-solaris2.10) GCC error:           |
> > | in set_value_range, at tree-vrp.c:124                                    |
> > | Error detected at sem_intr.adb:437:1                                     |
> 
> There seem to be several ways to get to this ICE.  set_value_range is
> used in many places in tree-vrp.c.  I'll try to take a look at these
> in the next few days.
> 

Kazu,

Here's an even shorter test case.

      SUBROUTINE CHER2K(N, C, LDC)

      INTEGER I, J, N, LDC
      COMPLEX C(LDC,*)

      DO 20, J = 1, N
         DO 10, I = 1, J
            C(I,J) = (0.0E+0, 0.0E+0)
   10    CONTINUE
   20 CONTINUE
      END

Appears that any nested loops are doomed with -O2 with gfortran.
This is a critical important problem, because almost every
Fortran program that I know contains nested loops.

-- 
Steve

Reply via email to