// PR rtl-optimization/91164 // { dg-do compile { target c++11 } } // { dg-options "-O2 -fdelete-dead-exceptions -fnon-call-exceptions -fno-rerun-cse-after-loop -fno-tree-forwprop" } template class b; template struct d { static constexpr int e = v; }; template using g = f; struct h { template using j = i; }; template using k = h::j; void *operator new(__SIZE_TYPE__, void *); struct l { l(); }; struct m; template n aa(m); struct o { template using ab = l; }; template struct b { struct q : o::ab { q(int, l = l()) : p() {} int p; } ac; void ad(); b() : ac(0) {} ~b() { bool r = ac.p == 0; if (r) ad(); } const wchar_t *ae(); }; struct m {}; struct t { virtual void f(); }; struct u { l a; }; struct af : t { struct ag { ag(l); }; af(l ah) : ai(ah) {} ag ai; }; struct w { template w(f, x y) { new (0) af(y.a); } }; struct z { using aj = int; template z(x ah) : ak(al, ah) {} aj al; w ak; }; struct am : z { template am(x ah) : z(ah) {} }; template am an(x) { return u{}; } template am ao() { return an(l()); } struct ap { k aq; k ar; k as; }; struct at { ap a; long au; ap av; ap aw; }; struct ax { at c; ax() : c() {} }; enum ay : int; ay az, ba; struct bb { bb(wchar_t *, wchar_t *, ay, m); }; template struct bd { typedef typename bc::be *bf; bd(bf, bf, const typename bc::bg &, ay); ay bh; bb bi; am bj; typename bc::bk e; ax bl; int bm; }; template using bn = g::e, am>; template bd::bd(bf ah, bf y, const typename bc::bg &bu, ay) : bi(ah, y, bh, bu), bj(ao()), bm(aa(bu)) {} struct bt { typedef wchar_t be; typedef b bk; typedef m bg; }; template bn bar(); template bn bq(bo) { typename bc::bg bp; auto bs = nullptr; using br = bd; br(bs, bs, bp, ba); return bar(); } struct bw { bw(); template void assign(b ah) { const wchar_t by = *ah.ae(); bw(&by, ah.ae(), bp, az); } template bw(bo, bo y, m, ay) : automaton(bq(y)) {} m bp; am automaton; }; void bx() { b s; bw ca; ca.assign(s); }