[Bug tree-optimization/56270] [4.6/4.7/4.8 Regression] loop over array of struct float causes compiler error: segmentation fault

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 4 13:14:00 GMT 2013


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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-04 13:13:58 UTC ---
Reduced testcase:

typedef struct {
    float l, h;
} tFPinterval;

tFPinterval X[1024];
tFPinterval Y[1024];
tFPinterval Z[1024];

void Compute(void)
{
  int d;
  for (d= 0; d < 1024; d++)
    {
      Y[d].l= X[d].l + X[d].h;
      Y[d].h= Y[d].l;
      Z[d].l= X[d].l;
      Z[d].h= X[d].h;
    }
}



More information about the Gcc-bugs mailing list