https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129238
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-12-03
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. In ops-common.h:file_time, overflow is checked via 'seconds{s} >=
floor<seconds>(system_clock::duration::max())', but underflow for negative
seconds (or timestamps before 1901 where subtracting _S_epoch_diff underflows
the 64-bit nanoseconds file_clock) is not checked, causing silent wrap-around.