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

    <tr>
        <th>Summary</th>
        <td>
            Clang accepts invalid narrowing conversion
        </td>
    </tr>

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

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

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

<pre>
    The following invalid program is accepted by x86-64 clang 13.0.1 with C++17. [Demo](https://godbolt.org/z/hso9rG7as). 

```
void f() noexcept(5) //compiles with x86-64 clang 13.0.1 with C++17
{

}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUdtu4yAU_Bp4QbUwjiF-4KFplP2B_gDYxzYrAhbgpO3X98RJd9W-VDpcRsDMMMfG4V2_zsDG6H28ujAxFy7Gu4EtKU7JnJnLzPQ9LAUGZt_Z214-yR3rvcG7dVPxqmZXV2b2QsQBq1YVI-3hCOdI2iMR-7mUJZPmmYgT1hQHG32pYpoQfeCYc-zSH2UyER0-5UfCnx-z5I_a4CWiqxEZ8SILEd5uphC2N3xn7-N5cR7y3dHvVh866vBNVh1_6FPQtZQtV7WSHR10M3RNZ2hxxYN-2ejvEeV_6QWT0j3PPoYLpOxioGvy-kccaGe1FfpG4P3la3nC9P9Cj987uZxXwHBO7V5wTme964SUdmhgaHd1X0MDQo2jFL1phG32QL2x4LPGLhAhAlzZRoF7bAh1WnAhas5l3baSq6obAcxghbKKW6U42XE4G-erm49bn2jSmyW7ThkPvcsl_z80ObspAGxyyG_WMsekkwnGhBgXuonrzfwnv1a7qg">