]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Do not define __cpp_lib_constexpr_exceptions [PR121114]
authorTomasz Kamiński <tkaminsk@redhat.com>
Wed, 16 Jul 2025 08:49:48 +0000 (10:49 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Wed, 16 Jul 2025 10:50:03 +0000 (12:50 +0200)
commitc163bbd75b600cc6d1ec752425ee895ef5b9b37d
tree1908c28f5204477fe2baf6447670a865fedc5f94
parentabf865732a7313cf79ffa325faed3467ed28d8b8
libstdc++: Do not define __cpp_lib_constexpr_exceptions [PR121114]

Do not advertise library support for constexpr exceptions, as our
solution to throwing by __throw_* functions from <bits/functexcept.h>,
caues constant evaluation to fail, as these functions are not constexpr.

PR libstdc++/121114

libstdc++-v3/ChangeLog:

* include/bits/version.def (constexpr_exceptions): Add no_stdname
and changed value.
* include/bits/version.h: Regenerated.
* testsuite/18_support/exception/version.cc: Test that macro is
not exported.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Tomasz Kaminski <tkaminsk@redhat.com>
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/testsuite/18_support/exception/version.cc