https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87493
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-10-03 Ever confirmed|0 |1 --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is not a valid bug report, please provide a proper testcase and the other information requested at https://gcc.gnu.org/bugs/ As documented at the following pages, those functions are potentially lossy if the precisions aren't the same (which isn't a problem for POSIX because std::time_t measures seconds anyway): https://en.cppreference.com/w/cpp/chrono/system_clock/to_time_t https://en.cppreference.com/w/cpp/chrono/system_clock/from_time_t