// PR tree-optimization/98282 // { dg-do compile { target c++11 } } // { dg-options "-O2" } template struct g; template struct g { typedef b c; }; template typename g::c &&d(b &&e) { return static_cast::c &&>(e); } void *operator new(__SIZE_TYPE__, void *f) { return f; } struct h; struct k { using i = h *; }; struct D { k::i j; }; struct p : D { p(p &&) : D() {} }; struct r { using l = int; r(r &&) : ad() {} l *ad; }; struct s { static s m(); }; struct t { template void operator=(ah); }; struct I { template void q(o ai) { *ai = aj(); s::m(); } h aj(); }; template class as; struct J { int a; char av; }; template struct aw : J { void ax(...) {} }; template struct aw, an, n...> : aw, n...> { using az = as; using ba = aw; char bb; an &bc() { return *reinterpret_cast(this); } void ax(az *bd) { if (bb) new (bd) an(d(bc())); ba::ax(bd); } }; template struct as : aw, n...> { as(); as(as &&be) { be.ax(this); } void operator=(as be) { be.ax(this); } }; struct h { as bg; }; using bh = t; struct u { bh bj; }; I bk(); template void bl() { h a; bk().q(&a); } template void bn(int) { u b; b.bj = bl; } void bp() { bn(0); }