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

           Summary: -fgraphite-identity  ICE in refs_may_alias_p_1, at
                    tree-ssa-alias.c:1081
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: wouter.vermae...@scarlet.be


> cat bug.ii
extern "C" { double cos(double x); }

static int outbuf[8][8];

int main() {
        double buf1[9];
        double* buf1_1 = &buf1[1];
        for (int i = 0; i < 8; ++i) {
                buf1_1[i] *= cos(i);
        }

        int buf2[64];
        for (int i = 0; i < 8; ++i) {
                int* buf2_i = &buf2[i];
                for (int j = 0; j < 8; ++j) {
                        outbuf[i][j] = buf2_i[8 * j];
                }
        }
}


> g++ -O2 -fgraphite-identity bug.ii
bug.ii: In function ‘int main()’:
bug.ii:19:1: internal compiler error: in refs_may_alias_p_1, at
tree-ssa-alias.c:1081


I'm using SVN revision tr...@167414 on linux x86_64.

Reply via email to