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

    <tr>
        <th>Summary</th>
        <td>
            [clang-cl] C++23 triggers pre C++17 warnings
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The following code when compiled in C++23 with clang-cl will trigger pre C++17 errors:
`using a = void(*)()noexcept;`

https://godbolt.org/z/3bxbb3n6x
```
<source>(1,20): error: exception specifications are not allowed in type aliases
    1 | using a = void(*)()noexcept;
      |      
```

I am seeing this error for the following diagnostics:
err_incompatible_exception_specs
warn_incompatible_exception_specs
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU81u3DwMfBr6QmRh0X-7Bx_25zPw3XsPJJm2VWglQ5KzSZ--sHeTtEFRoIAhUzDJ4QzHMkYzOuYWqhNUl0wuafKhTUaO_iq1DMbHTPn-rf02MQ7eWn8zbkTte8bbxA61v87Gco_G4RnoBHSiAm8mTaitdOOTtngz1mIKZhw54Bz4PVE0yCH4EKE4Qn6B_Ah1vsQVQCIUF3zxpgfaAx2BDltwcJ5fNc8JihPU-aNqO6eU5q0TdUDd6Hvlbdr5MAJ1P4C6Qr0qVbj69QPq8dyvxTn6JWiG4j-gvQA6U76iFsf7kFuwQRvvMM6szWC0XG8RZWB0PqFcBbqLkd5mRmmNjBzvEIiIAqE54z9w_KjErfIe_JHAdv6P8oqRee2fJhPvs-PgA6bfNtgbOTofk9Gf6nMIz8atG5XJKMvPH3yfV74PGjcZ3F_Tsr4t-kNxkBm3oslzqkXTNNnUqlrlZVmV_WFfFWrYCznUZc26klTnw15lpqWcCiFEQ1TVotk1tRD1oKUqqRHDIKDM-SqN3Vn7cl13m5kYF24bakSdWanYxs3LRI5vuH0EotXaoV1rntQyRihza2KKn12SSXb7Cd49C9XlFzs_vBu_mHdVwrgxZkuw7Rf7mTQtaqf9FahbYR6vpzn476wTULcNF4G6bfifAQAA__9IDxhK">