Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold-lambda3.C
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
);
}