gcc/libstdc++-v3/testsuite/std
Jonathan Wakely 628ba410b9 libstdc++: Fix P2510R3 "Formatting pointers" [PR110149]
I had intended to support the P2510R3 proposal unconditionally in C++20
mode, but I left it half implemented. The parse function supported the
new extensions, but the format function didn't.

This adds the missing pieces, and makes it only enabled for C++26 and
non-strict modes.

libstdc++-v3/ChangeLog:

	PR libstdc++/110149
	* include/std/format (formatter<const void*, charT>::parse):
	Only alow 0 and P for C++26 and non-strict modes.
	(formatter<const void*, charT>::format): Use toupper for P
	type, and insert zero-fill characters for 0 option.
	* testsuite/std/format/functions/format.cc: Check pointer
	formatting. Only check P2510R3 extensions conditionally.
	* testsuite/std/format/parse_ctx.cc: Only check P2510R3
	extensions conditionally.
2023-06-09 13:08:25 +01:00
..
concepts Update copyright years. 2023-01-16 11:52:17 +01:00
format libstdc++: Fix P2510R3 "Formatting pointers" [PR110149] 2023-06-09 13:08:25 +01:00
ranges libstdc++: Fix __max_diff_type::operator>>= for negative values 2023-04-24 13:39:54 -04:00
time libstdc++: Fix chrono::hh_mm_ss::subseconds() [PR109772] 2023-05-11 21:15:22 +01:00