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

--- Comment #4 from northon_patrick3 at yahoo dot ca ---
Actually is still crash even on valid code:

```
template <typename T>
void
foo (const T &x)
{
  [&] (auto&& y)
  {
    #pragma omp parallel for
    for (auto&& [v1, v2] : x)
      ;
  } ([]{});
}

struct A { int a, b; };

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

Reply via email to