<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJytVEuT2yAM_jX2RdMMxo84Bx82zXamtx566REDiekScHkkm_31FeSxbXanPbQegZEspE_oM6MVp-HrJJ0E5cFYOLITBAvRSyg6UrRrFK6Z2RX1A8o--hCY0kW7SdIRUAaYOSVnY-Uzl3NI1m00PChrFgXZFOThMmPALHyezxZlAnCmdUF7XBZ0Bbcg9frXrcnxljs7w_Nv7mff5WUT4PMX7OBkiM5c06dorzmXmzvEZ3UKYfYpGP2EsrNitDosrNuh9oLDrw7fXr6MP9y7VV_U-qO30XFZ1I8YqsVRU5xAOmddWnBmjMVzsftZaQlhws4k3Bkq-Cc1z8rswB6kA64lM3H2cJLhv5QOf36K9rFYvpF368zz5wBHG7WAUYJRHFm2hYwLy0vmiRlxrXFkXnEEhdQ7ZkaGSWaMMpOTaW_vaYa7s9fZgny7Hgh4mfl3ZnUAxkPESCcwUgopLrQsxVCLVb1iJYthsm7g05b5UEanh7teqzDFcYE9QUXrw_X1YXb2O6ZCVXkfpcdFW5N-WU6DaKqOLIWkmKBZ1VXPWUNoR8ZlJVaEklKzUWo_pG5Reu3W1lkTpBFowlaV_w5EDZRQSirSV31dtd2C0aYa-77bNqwlY8eKhsg9kmOR4iQ2l27IIce48_hRKx_860fmvdrhMWbciDCooC_K-o5nwsrz8R-te0o3RXDqoJi-_ba3e8KXGfWQIf8E9_9kTA>53087</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [[musttail]] does not work in trivial noexcept functions
        </td>
    </tr>

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

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

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

<pre>
    There is no way to use `[[clang::musttail]]` in any `noexcept` function.

```cpp
int call(int) noexcept;

int musttail(int x) noexcept
{
    [[clang::musttail]] return call(x);
}
```
https://godbolt.org/z/s9vYzPbqr

```
<source>:5:32: error: cannot compile this tail call skipping over cleanups yet
    [[clang::musttail]] return call(x);
                               ^~~~~~~
```

It would be nice if clang could handle this basic case where the callee is also `noexcept` and the exception cleanup section is not actually needed.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytUrmS2zAM_RqpwcSjw7oKFbvxZiZdijQpSQqymKVJhYe93q8PRNnexNlJmnAgigBB8D3wcTOc-68TWgTpQBs4sTN4A8EhJHWWVI9kQjG9T8oHskNw3jOpkmq3WJ2B1MD0eUnWBl8Ezn6JjkELL43eJNkuyR4uMxWMJuZ5jUjtQTClkqKlZVJ0cCtSPv56dEm83R2T4eW39DW3uRwCGv_ADhZ9sPp6_VLt7c5md4d4dSfvZ7cUKz6R7c3AjfIbY_fkvdLnuuO31y_8h32X9cUtPzoTrMCkfKJSFX1lQROgtcYuC8G0NtQXc5ilQvATvcyCO0IF9yznWeo9mCNaEAqZDrODM_r_Qh3-PpLqKWn-sHd5xvmzh5MJagCOoKUglY0QcRG9JTwxPVw5cuakIFAkvVNUpJ8wYsQoTqacuZcZnY5Za4T0dm0IOIz6W1XtgQkfqNIZNOKAw0WW6dCXQ1d2LPXSK-zXvt01azC41jgZ-7zI3Vt5lEzdtHcTu0uDVf2dSKSfAt_QY5Kj1PH6-zBb850wkiudC-hoUZVZ26RTX9RjU4lWbOt2GLom47zZ5nWZ56zDsR7LVDGOykW4RXF95tEa7VEPFCLYqeyLrCiyPGvztsyresOKbc7bth63rMp4zZJthgeiuVngLCJObR-R8bB3tKmk8-5tkzkn99S9tUm7lAU_GduLaWTOp5FDHwn8BJdXT4c">