[Bug libstdc++/108265] chrono::hh_mm_ss can't be constructed from unsigned durations

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 5 12:07:51 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108265

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:ebb1f6d14c2fef2e4e4aab30525279524c8f9145

commit r12-9030-gebb1f6d14c2fef2e4e4aab30525279524c8f9145
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Jan 4 16:43:51 2023 +0000

    libstdc++: Fix std::chrono::hh_mm_ss with unsigned rep [PR108265]

    libstdc++-v3/ChangeLog:

            PR libstdc++/108265
            * include/std/chrono (hh_mm_ss): Do not use chrono::abs if
            duration rep is unsigned. Remove incorrect noexcept-specifier.
            * testsuite/std/time/hh_mm_ss/1.cc: Check unsigned rep. Check
            floating-point representations. Check default construction.

    (cherry picked from commit e36e57b032b2d70eaa1294d5921e4fd8ce12a74d)


More information about the Gcc-bugs mailing list