Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice7.C

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