Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold-lambda4.C
blob: b8bae8602adc12447e9fbfb29df658c63fc859c7 [
file
] [
log
] [
blame
]
// PR c++/90215
// { dg-do compile { target c++17 } }
struct
X
{
template
<
class
F
>
void
f
(
F f
)
{
f
(
0
);
}
};
template
<
class
...
Xs
>
void
bug
(
Xs
...
xs
)
{
int
i
;
[&](
auto
&...
ys
)
{
(
xs
.
f
([&](
auto
)
{
ys
;
}),
...);
}(
i
);
}
int
main
()
{
bug
(
X
{});
}