// { dg-options -fno-new-ttp-matching } // { dg-do compile } namespace mpl { template struct lambda; template struct if_ { typedef T3 type; }; template struct arg { template struct apply { typedef U1 type; }; }; template struct begin_impl; template struct begin { typedef typename Sequence::tag tag_; typedef typename begin_impl::template apply::type type; }; template struct O1_size_impl; } template struct long_ { static const long value = N; }; namespace mpl { template struct O1_size : O1_size_impl::template apply {}; typedef arg<1> _1; template struct protect : T {}; template struct apply_wrap1 : F::template apply {}; template struct apply_wrap2 : F::template apply {}; template struct apply_wrap5 : F::template apply {}; template struct resolve_bind_arg; template struct replace_unnamed_arg { typedef T type; }; template struct bind1 { template struct apply { typedef typename apply_wrap1::type type; }; }; template struct resolve_bind_arg, U1, U2, U3, U4, U5> { typedef typename apply_wrap5>::type type; }; template struct bind2 { template struct apply { typedef resolve_bind_arg>::type, U1, U2, int, int, int> t2; typedef typename apply_wrap2::type type; }; }; template struct quote_impl { typedef T type; }; template