Consider: char a[8][8]; char b[8];
void foo (int i) { int j; for (j = 0; j < 8; j++) { a[i][j] = 0; b[j] = j; } } I get: $ ./cc1 -quiet -O2 -ftree-loop-distribution min.c min.c: In function 'foo': min.c:5: internal compiler error: in build2_stat, at tree.c:3298 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: -ftree-loop-distribution ICEs Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kazu at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38997