Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
pr99833.C
blob: f7c995887f8e46f6b02caf375b8296c6d9016b00 [
file
] [
log
] [
blame
]
// PR c++/99833
// { dg-do compile { target c++17 } }
struct
S
{
int
a
,
b
;
};
template
<class>
void
foo
()
{
[](
auto
d
)
{
if
constexpr
(
auto
[
a
,
b
]{
d
};
sizeof
(
a
)
>
0
)
a
++;
}
(
S
{});
}
template
void
foo
<
S
>
();