[Bug tree-optimization/22277] [4.1 Regression] ACATS ICE cc40001 in first_vi_for_offset, at tree-ssa-structalias.c:2566

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 11 09:03:00 GMT 2005


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-11 08:48 -------
More compact C++ testcase:

======================================
struct A
{
  char c;
  int i;
};

A a;

struct B
{
  char c, d;
};

union C
{
  A *p;
  B *q;

  C() : p(&a) {}
  char& foo() { return q->d; }
};

void bar() { C().foo() = 0; }
======================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list