// PR c++/70906 // { dg-do compile { target c++11 } } // { dg-options "-Wall" } template struct B; template struct F { typedef U *t; }; template struct D {}; template struct L { typedef VP np; typedef typename F>::t cnp; }; struct P { typedef L nt; }; template struct I { typedef typename N::template A t; }; template struct Q { typedef typename I::t t; }; template struct G; template struct mh { template struct A { typedef G pvt; }; }; template struct B { static T pt(T); }; struct R : public D { typedef P ht; }; class lmh : public R {}; template struct G { typedef Hook Ht; typedef typename Ht::ht::nt nt; typedef T vt; typedef typename nt::np np; typedef typename nt::cnp cnp; static np tnp(T &); static cnp tnp(const T &p1) { B::pt(static_cast(p1.*P)); return cnp (); } }; template struct K { template struct J; template static int foo(J *, int); static const int c = sizeof(foo(0, 0)); }; template struct W1 { typedef typename V::vt vt; static const bool value = K::c == K::c; }; template struct O { static const bool svt = W1::value; }; template struct M {}; template class C { static const bool svt = O::svt; M m; }; template struct H { C bar(); }; template struct ml { typedef typename Q::t po; typedef H t; }; template class list : public ml::t {}; struct N { struct IV { lmh hk; }; typedef list> ISL; friend void fn1(int &, N const &); }; void fn1(int &, N const &) { N::ISL xl; for (xl.bar();;) ; }