gcc/libstdc++-v3/include
Jonathan Wakely a01462ae8b libstdc++: Fix std::format output of %C for negative years
During discussion of LWG 4022 I noticed that we do not correctly
implement floored division for the century. We were just truncating
towards zero, rather than applying the floor function. For negative
values that rounds the wrong way.

libstdc++-v3/ChangeLog:

	* include/bits/chrono_io.h (__formatter_chrono::_M_C_y_Y): Fix
	rounding for negative centuries.
	* testsuite/std/time/year/io.cc: Check %C for negative years.
2023-12-12 22:33:32 +00:00
..
backward Update copyright years. 2023-01-16 11:52:17 +01:00
bits libstdc++: Fix std::format output of %C for negative years 2023-12-12 22:33:32 +00:00
c Update copyright years. 2023-01-16 11:52:17 +01:00
c_compatibility libstdc++: Do not declare strtok for C++26 freestanding (P2937R0) 2023-11-21 15:58:21 +00:00
c_global libstdc++: Do not declare strtok for C++26 freestanding (P2937R0) 2023-11-21 15:58:21 +00:00
c_std Update copyright years. 2023-01-16 11:52:17 +01:00
debug libstdc++: Qualify calls to debug mode helpers 2023-06-26 17:43:22 +01:00
decimal Update copyright years. 2023-01-16 11:52:17 +01:00
experimental libstdc++: Remove some more unconditional uses of atomics 2023-09-14 13:58:34 +01:00
ext libstdc++: Stop using _GLIBCXX_USE_C99_MATH_TR1 in <cmath> 2023-05-31 21:01:16 +01:00
parallel libstdc++: Fix broken _GLIBCXX_PARALLEL mode 2023-06-02 11:44:14 +02:00
precompiled libstdc++: Fix some freestanding test failures 2023-04-05 18:45:15 +02:00
pstl libstdc++: Enable OpenMP 5.0 pragmas in PSTL headers 2023-07-04 00:05:53 +01:00
std libstdc++: Fix resolution of LWG 4016 for std::ranges::to [PR112876] 2023-12-09 11:51:41 +00:00
tr1 Update copyright years. 2023-01-16 11:52:17 +01:00
tr2 libstdc++: Fix std::tr2::dynamic_bitset support for alternate characters 2023-11-21 15:58:21 +00:00
Makefile.am libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00
Makefile.in libstdc++: Define C++26 saturation arithmetic functions (P0543R3) 2023-11-17 15:28:30 +00:00