<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/97795>97795</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang rejects `[] throw () {}`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hewillk
      </td>
    </tr>
</table>

<pre>
    This is well-formed : `[] () throw () {};`, so `[] throw () {};` should also be well-formed because we are down with `()` in C++23, right?

```cpp
int main() {
  [] () throw () {}; // ok
  [] throw () {}; // not ok
}
```
https://godbolt.org/z/bf7rrh7Ks

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUs2O4ywQfJr2pZWINLaJDxzyI1--6_cCGBPDDjER4Il2n36FPbs7M9L-SAjUTVV1gUql5KbZGAnNGZprpZZsQ5TWPJ33L9UQxq_yf-sSuoRP4_3uFuLdjAj8hNCyjYVAR6AOs43h-aMAcQZxBX4uMLpgCu8Iv0VismHxIyqfAg7mw8zBaLWk0kMVDY7hOePTZbvqrlJFwM14AToDnYmXudFNNgPvgV2Bnd72lm1LPx5bx80Z78rN7yytfcR_eSIC9UA9hpdPrD_D55B_UsrNR29baXN-JOCnjTKFcQg-70OcgPpvQP1wEzFa8V_a4NUo-djxTlVGHgSxQ1t3vK2s5JyR0qQO-tAoddNdXddNTYJqEpodWeUkMaqZYA0TvOHtnnhL41Az3ZhB8eMBambuyvm996_34qByKS1GdkJ0TeXVYHxaY0SkvZonICqJirLgd8MyJaiZdymnXwrZZW_kpcAxmi9G5_SXlLSsWqKXn77FZbsMex3uQH0Rfzt2jxiKKFC_ek1A_Wb3VdL3AAAA___LTdRE">