]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Adjust value of __cpp_lib_constrained_equality for C++20
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Apr 2025 10:00:36 +0000 (11:00 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 10 Apr 2025 16:10:33 +0000 (17:10 +0100)
commitbb323ec8fdfce6dc22b1ca13a2c381f1496c545d
treeb3c940ab2bd756ce0d6d9c6ca4590e5df9e175cc
parent6fd19b2dbda453d3de57529ded2df9e62d1efdaa
libstdc++: Adjust value of __cpp_lib_constrained_equality for C++20

The P3379R0 bump to __cpp_lib_constrained_equality relates to changes
that only affect std::expected, so there's no reason to define the
updated value in C++20.

This change restores the previous value (202403) for C++20, and only
uses the new value (202411) for C++23 and later.

Also remove the TODO comments, because I correctly predicted that the
final value would be 202411.

libstdc++-v3/ChangeLog:

* include/bits/version.def (constrained_equality): Only define
as 202411 for C++23 and later, use 202403 for C++20.
* include/bits/version.h: Regenerate.
* testsuite/20_util/expected/equality_constrained.cc: Remove
TODO comment.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/testsuite/20_util/expected/equality_constrained.cc