]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix std::chrono::hh_mm_ss with unsigned rep [PR108265]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 4 Jan 2023 16:43:51 +0000 (16:43 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 5 Jan 2023 10:53:09 +0000 (10:53 +0000)
commitebb1f6d14c2fef2e4e4aab30525279524c8f9145
tree2b3be6fbb802b8413115fe68f3666181b4bd4358
parent92ee4e1f2792355744bf8740dccf39441b437bcf
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)
libstdc++-v3/include/std/chrono
libstdc++-v3/testsuite/std/time/hh_mm_ss/1.cc