]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Correct value of __cpp_lib_constexpr_exceptions [PR117785]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 11 Jul 2025 22:49:27 +0000 (23:49 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 Jul 2025 11:53:22 +0000 (12:53 +0100)
commit9b6b7fed78c5d3514a180f7ae9f7d86824f45735
tree77aa8390769d7f52b96ae3ab9c3954666da93957
parent8aff55e2598eca1e055d4ec16cec84676ca150c2
libstdc++: Correct value of __cpp_lib_constexpr_exceptions [PR117785]

Only P3068R6 (Allowing exception throwing in constant-evaluation) is
implemented in the library so far, so the value of the
constexpr_exceptions feature test macro should be 202411L. Once we
support the library changes in P3378R2 (constexpr exception types) then
we can set the value to 202502L again.

libstdc++-v3/ChangeLog:

PR libstdc++/117785
* include/bits/version.def (constexpr_exceptions): Define
correct value.
* include/bits/version.h: Regenerate.
* libsupc++/exception: Check correct value.
* testsuite/18_support/exception/version.cc: New test.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/libsupc++/exception
libstdc++-v3/testsuite/18_support/exception/version.cc [new file with mode: 0644]