// PR c++/90227 // { dg-do compile { target c++14 } } template struct c { static constexpr int d = b; typedef c e; }; template using f = a; template using h = c; template using i = c; template struct ab {}; template struct k { using e = ab; }; template struct ad; template struct ad> { using e = ab; }; template struct ae; template struct ae> : i {}; template ::d> struct ag; template struct ag, 0, 0> { using e = ab<>; }; template struct ag, 0, ah> : k>::e, ah - 1>::e> {}; template struct ag, ai, ah> : ag>::e, ai - 1> {}; template class> struct aj; template class ak> struct aj, ak> { using e = ab::e...>; }; template struct an; struct ao { typedef an<0> ap; }; template struct aq {}; template struct as; template struct as> { typedef aq ap; }; template using au = typename as::ap; template using av = aq; template using aw = au; struct ay { using e = h::d>; }; template class, typename...> struct bb : ay::e {}; struct bd { using e = av<>; }; struct bg { using e = bd::e; }; namespace bi { enum bj { bk }; struct bo { enum n { bp }; }; struct bq { bool br; static const bo::n bs = bo::bp; }; template struct bw { using e = bv; }; template class bx; template struct bx, av> : bo { static const n bs = bv::bs; static const long ca = sizeof bv::br; using cb = int; using cc = ab; using cd = typename ag::e; using ce = typename ag::e; using cf = aw; using cg = typename bw::e; using ch = decltype(cg()(cb(), cd(), ce(), cf())); }; class ck; template struct cl : c {}; template struct bx> : public bx, cl>::e, bg::e> {}; } using bi::bj; using bi::ck; template class co { template co(p) { c(); } static co o; }; namespace bi { template class cp; template using cq = bb; template void cs(cr, f::d, void *> = nullptr); } using bi::cs; struct cu : bi::bq { template auto operator()(int q, ab, ab, av<>) { cs(q); } }; template <> co>> co>>::o(0);