This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
- From: "stefaan dot deroeck at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jun 2005 07:54:25 -0000
- Subject: [Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize
- References: <20050602192334.21884.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From stefaan dot deroeck at gmail dot com 2005-06-07 07:54 -------
Another testcase possibly, that triggers the fault on 20050605 with parameters
-march=pentium4 -O3 -ftree-vectorize, but not with -O2 or -O1. Bug 21933 seems
related but doesn't trigger with -O3 or -O2, but does with -O1 (the testcase in
this bug also doesn't use standard includes, so may be easier to track down)
#include <vector>
const int COUNT = 4;
struct A {
public:
A() {
for (int i=0; i<COUNT;++i) x1[i] = 0;
}
void * x1[COUNT];
};
struct B : std::vector <A> {
void p1() {
clear();
insert(end(), A());
}
};
struct C {
B c1;
void p2();
};
void C::p2() {
c1.p1();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21884