[Bug fortran/78545] Possible correction to online LTIME documentation

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 26 18:13:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78545

--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #3)
> > Furthermore the documentation for LTIME should link to the related
> > functions IDATE, ITIME and in particular the F95 standard intrinsic
> > DATE_AND_TIME.
> 
> Is the following addition to GMTIME and LTIME OK?
> 
> This intrinsic routine is provided for backwards compatibility with 
> GNU Fortran 77.  In new code, programmers should consider the use of 
> the @ref{DATE_AND_TIME} intrinsic defined by the Fortran 90(95??) and later
> standard(s??).

Yes, sounds good to me. The documentation says DATE_AND_TIME is from F95, so:
"... defined by Fortran 95 and later standards."

Or just: "... defined by the Fortran 95 standard".


> I am not fond to add more links to the F77 extensions: if done, it has to be
> consistent for all of then. Not sure it worths the pain!

Agreed. But it would be nice if the non-standard extensions would at least
refer to a standard alternative. So, all of LTIME, ITIME, IDATE should have a
"See also" section that lists DATE_AND_TIME.


More information about the Gcc-bugs mailing list