https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89196
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- As the example says, it is "assuming system_clock for this demo". That assumption is not portable. It was true for GCC 8, but is not true for GCC 9. The C++17 standard does not require file_time_type::clock to support the to_time_t function. It happened to work with GCC 8 because the clock was the system_clock.