------- Comment #1 from rguenth at gcc dot gnu dot org  2009-04-14 14:02 -------
Testcase for the second case:

struct Y { int z; };
struct X { struct Y y; };
int foo()
{
  int z = 1;
  struct X *x = (struct X *)&z;
  return x->y.z;
}

a testcase for the first case is harder.


-- 


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

Reply via email to