]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use 202100L as feature test check for C++23
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 Nov 2023 19:22:47 +0000 (19:22 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 16 Nov 2023 08:00:36 +0000 (08:00 +0000)
commite469f9003dd1188ef87ddb62e3ab4d5cbeb905b4
tree0ec4139178148547833ec3756203c98b9fd71472
parent17aca35c0ecd23de40c1352c0a7220bad3f11cfc
libstdc++: Use 202100L as feature test check for C++23

I noticed that our C++23 features were not being defined when using
Clang 16 with -std=c++2b, because it only defines __cplusplus=202101L
but <bits/version.h> uses 202302L since my r14-3252-g0c316669b092fb
change.

This changes <bits/version.h> to use 202100 instead of the final 202302
value so that we support Clang 16's -std=c++2b mode.

libstdc++-v3/ChangeLog:

* include/bits/version.def (stds): Use >= 202100 for C++23
condition.
* include/bits/version.h: Regenerate.
* include/std/thread: Use > C++20 instead of >= C++23 for
__cplusplus condition.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/include/std/thread