// PR c++/40595 // { dg-do compile { target c++11 } } template struct S { typedef int type; }; template struct Get { static T get(); }; template struct B { template typename S::get() (Get::get() ...) )>::type f(Args&& ... a); }; struct X { bool operator()(int) const; }; int main() { B b; b.f(1); }