2017-10-11 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-ice7.C
blobfa0fe1ddaf98825b52be06c9e652651e0e278bf1
1 // PR c++/81299
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-Wall" }
5 struct function_t {
6   template <typename ...Xs>
7   void operator()(Xs&& ...) const { }
8 };
9 constexpr function_t function{};
11 int main() {
12   constexpr auto fun = ::function;
13   auto call = [=](auto ...x) { fun(x...); };
14   call();