blob: f7c995887f8e46f6b02caf375b8296c6d9016b00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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> ();
|