[Bug tree-optimization/21734] [4.1 regression] ICE: -ftree-vectorize, segfault

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 08:41:00 GMT 2005


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-01 08:41 -------
Even shorter testcase:

============================================
struct A
{
  int a[4];
  int* operator[](int i) { return &a[i]; }
};

void foo(A a1, A &a2)
{
  a1[1][1]=0;
  for (int i=0; i<4; ++i)
    a2.a[i]=0;
}
============================================


-- 


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



More information about the Gcc-bugs mailing list