https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114731
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #6) > Also note clang has the same behavior . ICC does too. MSVC actually gets it right (need to use /std:clatest) and change time_t into long since time_t there is `long long` and your test does not include `long long` support ...