https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99301
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <[email protected]>: https://gcc.gnu.org/g:699672d4dccfb5579dbe48977bda86f6836225a0 commit r11-7427-g699672d4dccfb5579dbe48977bda86f6836225a0 Author: Jonathan Wakely <[email protected]> Date: Sat Feb 27 12:50:53 2021 +0000 libstdc++: Fix conversions from date types to integers [PR 99301] The conversions to integer types are explicit, so need to use the correct type. Converting to uint32_t only works if that is the same type as unsigned. libstdc++-v3/ChangeLog: PR libstdc++/99301 * include/std/chrono (year_month_day::_M_days_since_epoch()): Convert chrono::month and chrono::day to unsigned before converting to uint32_t.
