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
hh_mm_ss
is_am
is_pm
make12
make24
month
month_day
month_day_last
month_weekday
month_weekday_last
traits
weekday
weekday_indexed
weekday_last
year
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