// PR c++/89767 // { dg-do compile { target c++14 } } // { dg-options "-O2 -Wall" } template struct e { using g = d; }; template class> using h = e; template class i> using j = typename h::g; template int k(c); template class au; struct l { template using m = typename c::f; }; struct s : l { using af = j *, m>; }; template struct o; template using q = typename o::g; template struct r; template struct r { typedef c aj; }; template struct al { typename r::aj operator*(); void operator++(); }; template bool operator!=(al, al); template struct ap; template struct ap : ap<1, as...> {}; template struct ap {}; template class au : public ap<0, at...> {}; template struct o> : o

> {}; template struct o<0, au> { typedef ar g; }; template constexpr ar av(ap __t) { return ar (); } template constexpr q> aw(au __t) { av

(__t); return q> (); } struct bg { typedef s::af af; }; struct F { typedef al bk; bk begin(); bk end(); }; void bo() { int t = 0; F cv; for (auto bp : cv) [t, n = k(aw<1>(bp))] {}; }