[Bug tree-optimization/27144] [4.2 regression] segfault with -O2 on x86_64
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-04-13 17:01 -------
Confirmed, here is a slightly reduced testcase:
typedef struct {unsigned *p; }
hvl_t;
test_vltypes_compound_vlen_vlen (void) {
typedef struct {
int i;
float f;
hvl_t v;
}
s1;
s1 wdata[128];
unsigned i, j, k;
hvl_t *t1, *t2;
for (i = 0; i < 128; i++)
{
wdata[i].i = i * 10;
wdata[i].f = (float) ((i * 20) / 3.0);
wdata[i].v.p = malloc ((i + 16) * sizeof (hvl_t));
for (t1 = (wdata[i].v).p, j = 0; j < (i + 16); j++, t1++)
{
for (k = 0; k < j + 8; k++)
t1->p[k] = i * 100 + j * 10 + k;
}
}
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-13 17:01:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27144
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: