I reduced the problem to a small, albeit nonsensical, test case: #include <vector>
void foo() { std::vector<char *> v; while (1) v.resize(1); } I'm compiling with -O3 -ftree-vectorize -march=pentium4 on gcc 4.0.0(20041110). I think this is related to bug 18397, but since it's unconfirmed I figured it may help to have another case. -- Summary: ICE in vector.tcc when -ftree-vectorize enabled Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: senor_fjord at yahoo dot com CC: gcc-bugs 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=18425