https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99833

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And hopefully valid variant thereof:
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> ();

Reply via email to