Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/pr99833.C

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> ();