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

    <tr>
        <th>Summary</th>
        <td>
            [libc++] `std::uncaught_exceptions` is provided in all standard modes while `__cpp_lib_uncaught_exceptions` is not
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          frederick-vs-ja
      </td>
    </tr>
</table>

<pre>
    - Commit 89102f0fa96c1d3b53bf289802167fa78baaa83d added `std::uncaught_exceptions` to libc++ and made it available in all standard modes.
- Commit 32784a740a0282dc6f4390b683ed6c6516f4d66c (https://reviews.llvm.org/D56750) added the corresponding feature-test macro `__cpp_lib_uncaught_exceptions` which is only provided since C++17, following the fact that `std::uncaught_exceptions` was initially added to C++17 via [N4259](https://wg21.link/n4259).

It seems more consistent to backport `__cpp_lib_uncaught_exceptions` if it's intentional to make `std::uncaught_exceptions` available in all modes.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMk8-OozgQh5_GXKxEdoEBHzh0dxRpL_sKUWEXwdPGRrZJtt9-RXfvZFezI-UCF-rP7-MrzNldA9HA1CtTpwq3Msc0TIksJWfeD7d8-IHVGO3HcOBvcVlc4b2WAiYxoW6NtPWo6nGCXvcCZNtN2PUjIva15WgtWc5akYtl9QurX7ZgcLvO5UJ_GVqLiyGzVvASuXejYfDK4JVjsHxBS9wVjjd0HkdP3AWO3vNcMFhMli_RUj4ycWLi5edqNXR9g10jUEAP1rRTU2sxtn1NtjWtku3U2LY1nEE_l7LmfS04Mzgnujm656P3t-UY05XB-aTaTgkG-jtImYmbmBLlNQbrwpVPhGVLdCiUC1_QpLinvVzMul68Gy-_iXufnZm5yzwG_8HXFG9u759dMMTfvijIjsEbn6L38b6P2odPaAovM5ZnmN4xcxdccej9xz8J4qM9vznkTL3-2YDSTJ1-IXK_gjx6F94ZnMPnR6C_eX89_yg8Ey2ZLzHtZEJ2uVAo-5gRzfsaU3mKh5u4Kwy6feG9gYsB_d5lwXd6JusvlnzJUdmhtrrWWNEgO5B932mhq3kYJ5KmH7ERou9VbWuNpkZTKzsBNt1YuQEENKIDJVopG32UhA3pFmQrtTZKsEbQgs7_9KVyOW80SCGUVJXHkXz-vCqAh9oMYL-yNOxVh3G7ZtYI73J5eFcVV_znPf6rTJ2eoeDyw6X_vZZdPE_P_ZLMQyzVlvzwXyuurszbeDRxYXDel_5-HdYUf5ApDM6fJDKD8zeM2wB_BwAA__9R5mzx">