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

--- Comment #3 from eczbek.void at gmail dot com ---
Another test case: https://godbolt.org/z/98joW6saj

```
auto f = [x = 0] noexcept(noexcept(x)) { return x; };
```

<source>:1:36: error: 'x' was not declared in this scope
    1 | auto f = [x = 0] noexcept(noexcept(x)) { return x; };
      |                                    ^
Compiler returned: 1

Reply via email to