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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note it looks like clang does not implement `parameter declaration before
lambda declaration specifiers only optional with C++23` as clang rejects:
```
auto l = [] static {};
```

Note all 3 accept:
```
auto l = [] ()throw() {};
```

So it might be the case GCC is correct here where the `lambda declaration
specifier` is `throw()`. Implementing the rule correctly.

Reply via email to