1// { dg-do run }2// PRMS Id: 51843// Bug: cast to C& below does not adjust address45struct A {};
6struct B {
7virtualvoidfoo () {};
8};
9struct C : public B, public A {};
1011intmain() {
12 C c;
1314 A& ar = c;
15 C& cr = (C&)ar;
1617cr.foo(); // this line causes core dump18}
19