blob: 5a53c866284d2ec4d00651d368aa6ff9eaf418be [file] [log] [blame]
// 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);
}