This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug tree-optimization/23820] New: ICE in lambda_loopnest_to_gcc_loopnest, at lambda-code.c:1982


// test case, compile with -O1 -ftree-loop-linear

int t [2][4];

void foo (void)
{
  int i, j, k, v;
  float e;
  for (;;)
    {
      v = 0;
      for (j = 0; j < 2; j ++)
        {
          for (k = 2; k < 4; k ++)
            {
              e = 0.0;
              for (i = 0; i < 4; i ++)
                e += t [j][i];
              if (e)
                v = j;
            }
        }
      t [v][0] = 0;
    }
}

// compiler output:
1.i: In function 'foo':
1.i:4: internal compiler error: in lambda_loopnest_to_gcc_loopnest, at
lambda-code.c:1982

-- 
           Summary: ICE in lambda_loopnest_to_gcc_loopnest, at lambda-
                    code.c:1982
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at depni dot sinp dot msu dot ru
                CC: dberlin at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23820


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