PR c++/64105
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-generic-variadic2.C
blob2808aa6c190ef62d75a4db416b4500a336c26e7d
1 // PR c++/64105
2 // This test was ICEing on pre-C++14 mode.
4 #include <functional>
6 using F = std::function<void(void)>;
8 struct X
10   template <typename T>
11   static void f(T t)
12   {
13     g(t);
14   }
16   static void g(F) {}
19 int main()
21   X::f([](auto... xs){});       // { dg-error "" "" { target { ! cxx14 } } }