[Bug c++/46304] [4.5 Regression] g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 5 10:55:00 GMT 2010


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();
}



More information about the Gcc-bugs mailing list