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

            Bug ID: 113327
           Summary: std::sleep_for(std::chrono::hours::max()) returns
                    immediately
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fchelnokov at gmail dot com
  Target Milestone: ---

Found in https://stackoverflow.com/a/77795017/7325599

The problem is that the following program returns immediately (instead of long
wait):


#include <chrono>
#include <thread>
#include <iostream>

int main(int argc, char * argv[])
{
    std::this_thread::sleep_for(std::chrono::hours::max());
}


Online demo: https://godbolt.org/z/vce44vjx5

Reply via email to