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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Adjusted testcase, so that it is already valid C++17:
template <typename T>
void
foo (const T &x)
{
  [&] (auto&& y)
  {
    #pragma omp parallel for
    for (auto&& [v1, v2] : x)
      ;
  } ([]{});
}

void
bar ()
{
  int a[10];
  foo (a);
}

Reply via email to