[Bug c/48060] New: internal compiler error: in dfs_enumerate_from, at cfganal.c:1209

y@momonga-linux.org gcc-bugzilla@gcc.gnu.org
Thu Mar 10 14:04:00 GMT 2011


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

           Summary: internal compiler error: in dfs_enumerate_from, at
                    cfganal.c:1209
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: y@momonga-linux.org


gcc 4.6.0 20110305 ICEs with "-O3" when using the following code;




typedef struct  {
  unsigned long status;
} Table;

extern Table* table;
extern void func2(Table *p);

int func(int a)
{
  while (a) {
    unsigned long b;
    Table *p;

    p = &table[b];

    if (!p || (p->status & (b))) {
      p = 0;
    }
    if (p && p->status) {
      func2(p);
    }
  }
  return 1;
}



More information about the Gcc-bugs mailing list