typedef struct
{
int baddr;
} mstruct_t;
static struct
{
unsigned int mapnum;
mstruct_t unused;
} mtab;
static mstruct_t *mactab = &mtab.unused;
int
main(void)
{
int i;
int addr;
for (i=1; i <= mtab.mapnum; i++)
{
if (addr < mactab[i].baddr)
{
break;
}
}
return 0;
}
./cc1 -quiet -O2 t.c
t.c: In function main:
t.c:16: internal compiler error: in set_uids_in_ptset, at
tree-ssa-structalias.c:4817
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: [4.3 Regression] ICE in set_uids_in_ptset, at tree-ssa-
structalias.c:4817
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38752