This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


(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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]