]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix __cpp_lib_chrono for old std::string ABI
authorJonathan Wakely <jwakely@redhat.com>
Thu, 20 Jun 2024 12:28:08 +0000 (13:28 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 21 Jun 2024 09:10:10 +0000 (10:10 +0100)
commitf906b107634bfac29676e7fcf364d0ca7ceed666
tree6a5385d344652a0581a0afea50a0fa9abb46727d
parent510ce5eed69ee1bea9c2c696fe3b2301e16d1486
libstdc++: Fix __cpp_lib_chrono for old std::string ABI

The <chrono> header is incomplete for the old std::string ABI, because
std::chrono::tzdb is only defined for the new ABI. The feature test
macro advertising full C++20 support should not be defined for the old
ABI.

libstdc++-v3/ChangeLog:

* include/bits/version.def (chrono): Add cxx11abi = yes.
* include/bits/version.h: Regenerate.
* testsuite/std/time/syn_c++20.cc: Adjust expected value for
the feature test macro.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/testsuite/std/time/syn_c++20.cc