☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
pr99833.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/pr99833.C
code
plain
raw
1
// PR c++/99833
2
// { dg-do compile { target c++17 } }
3
4
struct S { int a, b; };
5
template <class>
6
void
7
foo ()
8
{
9
[](auto d) { if constexpr (auto [a, b]{d}; sizeof (a) > 0) a++; } (S{});
10
}
11
template void foo<S> ();