Commit 183e9006 by Paolo Carlini

Add testcase of PR c++/90448, already fixed in trunk.

	PR c++/90448
	* g++.dg/cpp1y/lambda-generic-variadic20.C: New.
parent 203f2b73
2020-04-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/90448
* g++.dg/cpp1y/lambda-generic-variadic20.C: New.
2020-04-22 Martin Sebor <msebor@redhat.com>
PR middle-end/94647
......
// PR c++/90448
// { dg-do compile { target c++14 } }
template<class ... Ts> int fooV(Ts ... ts) {
auto L = [](auto ... a) {
auto M = [](decltype(a) ... b) -> void {
};
return M;
};
decltype(L(L, ts...)) (*fp)(decltype(L), decltype(ts) ...) = L;
return 0;
}
int run2 = fooV("BC", 3, 2.77, 'A', float{}, short{}, unsigned{});
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