// PR c++/42266 // { dg-do compile { target c++11 } } template class tuple; template class _Mu; template struct _Bind; template class _Bind<_Functor(_Bound_args...)> { template()(_Bound_args(), tuple<_Args...>())...) )> void __call() { } }; template _Bind<_Functor(_Arg)> bind(_Functor, _Arg) { } struct State { bool ready() { return true; } void f() { bind(&State::ready, this); } };