[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 --- Comment #6 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:1395c573c523762957bde8c2a08832c5f4350815 commit r14-6291-g1395c573c523762957bde8c2a08832c5f4350815 Author: Jonathan Wakely

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-07 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 --- Comment #5 from Jonathan Wakely --- The original effect of --disable-libstdcxx-verbose was to change the default std::terminate handler, which is a configure-time property. But it's now also used to decide whether to use the verbose

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-07 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 --- Comment #4 from Tamar Christina --- Awesome! Thanks for taking a look! > > It seems that undefining `_GLIBCXX_VERBOSE_ASSERT` gets it to go to > > `__builtin_abort()` which makes it work again. > > > > If this change was intentional,

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 --- Comment #3 from Jonathan Wakely --- This minimal fix is enough to remove the reference to __glibcxx_assert_fail when optimization is enabled (at any level): --- a/libstdc++-v3/include/bits/c++config +++

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 Jonathan Wakely changed: What|Removed |Added Priority|P3 |P1

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 --- Comment #2 from Jonathan Wakely --- That change was broken anyway: when _GLIBCXX_ASSERTIONS was not defined, the condition in the assertion is if constexpr (is_constant_evaluated()) which is always true, even when not actually doing

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug libstdc++/112882] [14 Regression] std::clamp no longer usable in header only mode

2023-12-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112882 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|