[Bug fortran/123693] year 2038 for time functions (gmtime, ltime)
manfred99 at gmx dot ch
gcc-bugzilla@gcc.gnu.org
Tue Jan 20 01:09:55 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123693
--- Comment #4 from Manfred Schwarb <manfred99 at gmx dot ch> ---
But why remove something that works even after year 2038?
It seems that the underlying c-routine works also beyond year 2038.
Relaxing the integer check in gfc_check_ltime_gmtime() and calling
gmtime_i8 instead of gmtime_i4 in gfc_resolve_gmtime() depending on the
argument type would make things work, I guess.
I'm not familiar enough with this intrinsic machinery to provide a patch,
unfortunately.
More information about the Gcc-bugs
mailing list