1 // PR c++/81299 2 // { dg-do compile { target c++14 } } 3 // { dg-options "-Wall" } 4 5 struct function_t { 6 template <typename ...Xs> operatorfunction_t7 void operator()(Xs&& ...) const { } 8 }; 9 constexpr function_t function{}; 10 main()11int main() { 12 constexpr auto fun = ::function; 13 auto call = [=](auto ...x) { fun(x...); }; 14 call(); 15 } 16