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

    <tr>
        <th>Summary</th>
        <td>
            Clang 14 and 15 front-end crashes with 2-line source file
        </td>
    </tr>

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

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

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

<pre>
    Sorry that the source isn't valid c++. This came from valid c++ that was run through `creduce`, with a script checking clang for return code `139`.

**source.cpp**
```
template <a b, a> c;
template <a b, a d> concept e = c<b, d> struct e<>
```
**repro**
```
clang -c -std=c++20 source.cpp
```

**--version**
```
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
```

Testing this on godbolt shows that clang 15 also crashes, but 16 onwards work fine.
Running this with `-emit-llvm -Xclang -disable-llvm-passes` still crashes, which means it's a front-end bug according to [the reporting doc](https://llvm.org/docs/HowToSubmitABug.html).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VE2P4ygQ_TXkUrKFcezEBx86nYl2rzu90t5WGCqGGQwWBZ2ef7_yx870SDMtoUT4FVWvXj2QRHb0iD1rLqy5HmROJsT-SyCT5SStMngYgv7Wfw4xfoNkZIJkECjkqBAseSZOCV6lsxoUExcmLiW8GEug5IRwj2H6Gd1yPCRBzB6SiSGPBljLVUSdFbKWM_EMD5sMSCAV7ZxAGVRfrR9BOelHuIcIEVOOHlTQuJyu6o61vGT8yvjT_iuWtTEt1Txv-x1r-b7WbcJpdjIhsPpZwrAQkKz-BIrVl99HgF5jglc4J1ig63LieUVXjFLMKgGy-pnVn35ZemMVcY7hA4Jb34WCgpJm9XUXU3B4198v078rUhSvGMkG_0Ghv4fsU9513sOhOpa85EWVV7Aqqy32RcYRE6uf4O3c_tsei1kVzvr8Vow-7yEmotQwBY1uCZwD2bcN-tNTks6hvtq4QEzcMkUmboP1H7TygpQWJ6TFY8HDGPQQXAIy4UGbuTbyVQPSUQAVJRmkZSZDTlC1EPxDRk3wCPEr3K3H3TZ_Ze-_p14NyFpe4GRT4dzrBMU_-xi0JTk4XL8WsyRCYi0HSta59_UexioDE0pPYBMTJwK5XAmfCvQahjyCVCpEvVYNwJrLcrkiziGuTeqgWHNl4mxSmonVT0zcmLgtdcsQRyZuOihi4vZHeLyEz3mYbHq65LE0aXJMdOVB97Xu6k4esK9Ogp_bTtTng-kVl21zrLTWrUahuzsfKiGOja7ObcVxONhecHHkp6quqqpuzqWsTlLqTtb3Zuhk27Ijx0laV_7P5mCJMvbd-VR3BycHdLQ-K0KssjEhlhcm9qtqQx6JHbmzlOhHhmSTw_55m98RpNfLGH8otmu7DUcsZvv-FN2tw0OOrv9ZqtEmk4dShWnXbf8r5hi-oEpM3Fbai4gb89de_BcAAP__WMWPNA">