71e9716137
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]. |
||
---|---|---|
.. | ||
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 | ||
year_month_day | ||
year_month_day_last | ||
year_month_weekday | ||
year_month_weekday_last | ||
syn_c++20.cc |