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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2013-11-11 00:00:00         |2025-10-14

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Comment 0 has been fixed since GCC 10.1 (presumably by Mike's
r10-2968-gad4d1d21ad5c51 fix for Bug 41861).

Although many uses of timeout now defend against overflow, the example in
comment 7 still has a problem when doing:

        return wait_until(__lock,
                          steady_clock::now() +
                          chrono::__detail::ceil<__dur>(__rtime));

The chrono::ceil call converts minutes::max() to nanoseconds, which overflows.

Reply via email to