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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> There are other overflows in e.g. sleep_until:
> 
>     time_point<system_clock, minutes> end_of_time(minutes::max());
>     std::this_thread::sleep_until(end_of_time);
> 
> This function internally compares now < end_of_time and that triggers a
> conversion that overflows.

Libc++ fails for this case, even though it handles sleep_for(minutes::max()).

Reply via email to