// PR c++/64105 // This test was ICEing in C++11 mode. // { dg-do compile { target c++11 } } #include using F = std::function; struct X { template static void f(T t) { g(t); } static void g(F) {} }; int main() { X::f([](auto... xs){}); // { dg-error "" "" { target { ! c++14 } } } }