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

    <tr>
        <th>Summary</th>
        <td>
            Clang crash on improper use of `__array_extent`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend,
            crash-on-invalid
      </td>
    </tr>

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

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

<pre>
    Clang crashes on
```c++
auto test() {
  return __array_extent(int, );
}
```
https://godbolt.org/z/3Wa51enP9
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckUGP2ywQhn_NcEGJ8GCbcOCQTeTzd_uOETaTmJaABXjV7a-v7I3UKtIIBO-IR_NgS_GPSGSg-4Duyuxa55TNMvsQ_U-lFBuT-zKXYOODT9mWmQpPEcQVxBl68V0T4MdW-61da-KVSgU8AWoO6hVwnqmuOfLbzeZsv270q1Lc2vy2XjigBvlqBnV9g3wf51qXAvIMOAAOj-TGFOox5Qfg8BtwkP_brqH4n2bOSKeltoxMo0R_0rppOzYbSR1hS61Tzb0T3akRY29Vr8mRmxw55g0KbAUKbE5SC3m8j9IidVIprRqUFlpBT-vDMYTP58ZmvpSVzEm0qmXBjhTKLhRx2sSBPN9zipWiA0TAyxZsLg8pHnz8tMHvQXdl2WxvHsb1UaAVwZda_lKqr4H-_QueIvfPJaeFMl8L8XTn0Is3v71gaw7mzZyv8zoep_QEHDbCazssOf2gqQIO-1AFcNjn-hMAAP__aQyoiA">