Commit 42e99e70 by Jason Merrill

* g++.dg/cpp1y/lambda-generic-variadic2.C: Fix.

From-SVN: r218987
parent a7fa8d18
// PR c++/64105
// This test was ICEing on pre-C++14 mode.
// This test was ICEing in C++11 mode.
// { dg-do compile { target c++11 } }
#include <functional>
......@@ -18,5 +19,5 @@ struct X
int main()
{
X::f([](auto... xs){}); // { dg-error "" "" { target { ! cxx14 } } }
};
X::f([](auto... xs){}); // { dg-error "" "" { target { ! c++14 } } }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment