------- 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

Reply via email to