www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Y2038 compiler bug

reply "John C" <johnch_atms hotmail.com> writes:
The DMD compiler uses the CRT time functions which don't work beyond Jan 19
3:14:07 2038. It may be a long while away, but with this issue we can't test
if programs will run after that date.

The problem exists in "lexer.c", line 502.

There's some background and fixes here: http://www.2038bug.com

I suggest using the time64 family of functions.
Jan 20 2006
parent Dave <Dave_member pathlink.com> writes:
In article <dqqs4h$28uj$1 digitaldaemon.com>, John C says...
The DMD compiler uses the CRT time functions which don't work beyond Jan 19
3:14:07 2038. It may be a long while away, but with this issue we can't test
if programs will run after that date.

The problem exists in "lexer.c", line 502.

There's some background and fixes here: http://www.2038bug.com

I suggest using the time64 family of functions.
Ahh, c'mon - No D programs compiled now could possibly still be running in '38 <g> dibs on 'Yx7F6'! Seriously though - good catch! - Dave
Jan 20 2006