]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Support P2510R3 "Formatting pointers" as a DR for C++20
authorJonathan Wakely <jwakely@redhat.com>
Thu, 11 Jul 2024 23:30:24 +0000 (00:30 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 31 Jul 2024 16:07:10 +0000 (17:07 +0100)
commit72cd15b20a887bed9b0b1f4196be99fe052247b4
tree2a6530a0e43f98671d9d9b65c10cfca8617b21cc
parent74b5101cc9e297f7c530642553e3498d4d705cf4
libstdc++: Support P2510R3 "Formatting pointers" as a DR for C++20

We already enable this for -std=gnu++20 but we can do it for -std=c++20
too. Both libc++ and MSVC also treat this change as a DR for C++20.

Now that the previous change to the value of __cpp_lib_format is
supported, we can finally update it to 202304 to indicate support for
this feature too.

libstdc++-v3/ChangeLog:

* include/bits/version.def (format): Update value for P2510R3.
* include/bits/version.h: Regenerate.
* include/std/format (_GLIBCXX_P2518R3): Remove misspelled macro
and check __glibcxx_format instead.
* testsuite/std/format/functions/format.cc: Check value of the
__cpp_lib_format macro for formatting pointers support.
* testsuite/std/format/parse_ctx.cc: Likewise.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/functions/format.cc
libstdc++-v3/testsuite/std/format/parse_ctx.cc