/* { dg-do compile } */ /* { dg-require-effective-target c++11 } */ /* { dg-additional-options "-O3" } */ /* { dg-additional-options "-march=z13" { target s390x-*-* } } */ template struct k { static constexpr int c = a; }; template struct o; template struct o { typedef decltype(0) h; }; template struct p : o::c, k::c, g...> {}; class q; class r { public: void ap(q); }; template void ax(aw ay) { ay(); } template void ba(az bb) { using bc = p; using bd = typename bc::h; ax(bb); } template class s; class t { public: s<8> br(); template void operator()() { ba(br()); } }; class q { public: template q(az) { H(); } struct H { t cc; H() { cc(); } }; }; template struct I {}; template void cm(j cn, I) { cm(cn, I()); cn(cl); } template void cm(j, I<0>) {} template struct u { long cp[co]; void cq(const u &); void cs(int); void operator<(u); }; template void u::cq(const u &l) { cm([&](int i) { cp[i] &= l.cp[i]; }, I()); } template void u::cs(int m) { cm([&](int i) { cp[i] >>= m; }, I()); } template class K; template class v { int cv; friend K; public: void cx(int, unsigned char *, unsigned long long); }; template class K { public: static void cx(v &); }; template void v::cx(int, unsigned char *, unsigned long long) { K::cx(*this); } template void K::cx(v &cz) { u a, b, d; int e, n = cz.cv; for (; e;) if (cz.cv) a.cs(cz.cv); a.cq(d); a < b; } template class s { v *dh; public: void operator()(); }; template void s::operator()() { int f; unsigned char g; long h; dh->cx(f, &g, h); } void d() { r i; t j; i.ap(j); }