Commit 2eb409c6 by Jason Merrill

* g++.dg/cpp1z/fold-lambda3.C: Add test for 88183.

From-SVN: r269294
parent aaa6a466
// PR c++/88183
// { dg-do compile { target c++17 } }
struct A { int i; };
template <class T> T& g(T);
template <class U, class... Vs>
void f(U u, Vs... vs)
{
[vs...](auto x) {
(g(x) .* ... .* vs) = 42;
}(u);
}
int main()
{
f(A(), &A::i);
}
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