[Bug tree-optimization/36287] New: ICE with -O -ftree-loop-linear

wouter dot vermaelen at scarlet dot be gcc-bugzilla@gcc.gnu.org
Wed May 21 08:32:00 GMT 2008


(This may or may not be the same issue as 36286, though the compiler error
message is different)


> cat bug.ii
int tab[2][2];
void f() {
        for (int i = 0; i < 2; ++i) {
                for (int j = 0; j < 2; ++j) {
                        for (int k = 0; k < 2; ++k) { }
                }
        }
        for (int i = 0; i < 2; ++i) {
                for (int j = 0; j < 2; ++j) {
                        if (i == 0) {
                                tab[i][j] = 0;
                        }
                }
        }
}

> g++ bug.ii
foo31.ii: In function ‘void f()’:
foo31.ii:2: internal compiler error: Segmentation fault


-- 
           Summary: ICE with -O -ftree-loop-linear
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wouter dot vermaelen at scarlet dot be


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



More information about the Gcc-bugs mailing list