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

Reply via email to