This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30015] Intrinsic date_and_time can go back in time
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2006 14:12:28 -0000
- Subject: [Bug libfortran/30015] Intrinsic date_and_time can go back in time
- References: <bug-30015-12935@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2006-11-29 14:12 -------
Confirm. (Though I couldn't reproduce the problem with gcc 4.2 and gcc 4.1 and
the example program.)
The proposed solution is to change
local_time = *localtime (<);
UTC_time = *gmtime (<);
[...]
values[6] = local_time.tm_sec;
[...]
gettimeofday (...)
values[7] = tp.tv_usec / 1000;
to
gettimeofday (...)
values[7] = tp.tv_usec / 1000;
[...]
local_time = *localtime (<);
UTC_time = *gmtime (<);
[...]
values[6] = local_time.tm_sec;
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-11-29 14:12:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30015