Re: [PATCH] libstdc++: Add compile-time checks to__glibcxx_assert [PR 71960]

2020-09-01 Thread Jonathan Wakely via Gcc-patches
On 26/08/20 17:48 +0100, Jonathan Wakely wrote: This change evaluates __glibcxx_assert checks unconditionally when a function is being constant evaluated (when std::is_constant_evaluated() is true). If the check fails, compilation will fail with an error. If the function isn't being constant eva

[PATCH] libstdc++: Add compile-time checks to__glibcxx_assert [PR 71960]

2020-08-26 Thread Jonathan Wakely via Gcc-patches
This change evaluates __glibcxx_assert checks unconditionally when a function is being constant evaluated (when std::is_constant_evaluated() is true). If the check fails, compilation will fail with an error. If the function isn't being constant evaluated, the normal runtime check will be done if e