// PR c++/84314 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } // { dg-additional-options "-w -std=c++11" } template struct c { static constexpr a d = b; }; template using e = c; template struct conditional; template struct f; template struct f : conditional::i {}; template struct j; template struct j : conditional<1, h, g>::i {}; template struct j : conditional<1, j, g>::i {}; struct aa : e {}; template struct m : c {}; template struct o { template static c p(int); typedef decltype(p(0)) i; }; template struct ab : o::i {}; template struct s { typedef int ad; }; template struct q; template struct q { typedef a i; }; template struct conditional { typedef ae i; }; template struct conditional { typedef r i; }; struct B { B(int); }; template struct af; template struct af : af<1, ah...>, B { typedef af<1, ah...> ai; ai al(af); template af(af p1) : ai(al(p1)), B(0) {} }; template struct af {}; template struct ap { template static constexpr bool ar() { return j...>::d; } }; template class as : public af<0, ao...> { typedef af<0, ao...> ai; public: template using au = ap::d, ao...>; template ::template ar(), bool>::i = true> as(as an) : ai(an) {} }; template as::ad...> ax(ao...); namespace ay { class az {}; } using ay::az; namespace ay { template struct C { typedef ba bc; }; } template class bd; template using bj = f, ab>; template class bd { struct F : bj {}; template using bm = typename q::i; public: template , typename = bm> bd(bg); using bn = bf; bn bo; }; template template bd::bd(bg) { bo; } typedef long long(__attribute__((fastcall)) bq)(int *); struct v : ay::C> { bc bt() { return ax(nullptr, nullptr, az()); } }; class w { public: int *cc(); }; class x : w { void ce(); }; namespace u { class cf { public: static cf cg(int, int *, int, az, bd); }; } void x::ce() { auto bu = 0; u::cf::cg(bu, cc(), 1, {}, 0); }