// PR c++/40595 // { dg-options "-std=c++0x" } 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); }