gcc/libstdc++-v3/testsuite/std/time
Patrick Palka 71e9716137 libstdc++: Fix arithmetic bug in chrono::year_month::operator+
This fixes the months-based addition for year_month when the
year_month's month component is 0.

libstdc++-v3/ChangeLog:

	* include/std/chrono (year_month::operator+): Properly handle a
	month value of 0 by casting the month value to int before
	subtracting 1 from it so that the difference is sign-extended in
	the subsequent addition.
	* testsuite/std/time/year_month/1.cc: Test adding months to a
	year_month whose month component is below or above the
	normalized range of [1,12].
2020-08-27 14:11:24 -04:00
..
clock/file
day libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
hh_mm_ss libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
is_am libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
is_pm libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
make12 libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
make24 libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
month libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
month_day libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
month_day_last libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
month_weekday libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
month_weekday_last libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
traits
weekday libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
weekday_indexed libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
weekday_last libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
year libstdc++: Add more C++20 additions to <chrono> 2020-08-25 10:23:59 -04:00
year_month libstdc++: Fix arithmetic bug in chrono::year_month::operator+ 2020-08-27 14:11:24 -04:00
year_month_day libstdc++: Fix operator overload ambiguity with calendar types 2020-08-27 14:09:52 -04:00
year_month_day_last libstdc++: Fix operator overload ambiguity with calendar types 2020-08-27 14:09:52 -04:00
year_month_weekday libstdc++: Fix operator overload ambiguity with calendar types 2020-08-27 14:09:52 -04:00
year_month_weekday_last libstdc++: Fix operator overload ambiguity with calendar types 2020-08-27 14:09:52 -04:00
syn_c++20.cc