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

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-05 
10:54:59 UTC ---
Smaller testcase - I suspect a tree sharing issue.

template<int i>
struct ClassA
{
  _Complex double *data;
  void setSize() { data[0] = 1.0 + 2.0i; }
};

void foo(void)
{
  ClassA<0> a1;
  ClassA<1> a2;
  a1.setSize();
  a2.setSize();
}

Reply via email to