Documentation of LTIME
Janus Weil
janus@gcc.gnu.org
Sat Nov 26 16:01:00 GMT 2016
And one last point: The description of LTIME mentions TIME8, but if I try this:
call ltime(time8(), values)
I get:
Error: ‘time’ argument of ‘ltime’ intrinsic at (1) must be of kind 4
So maybe the reference to TIME8 should be replaced by TIME?
Cheers,
Janus
2016-11-26 16:54 GMT+01:00 Janus Weil <janus@gcc.gnu.org>:
> 2016-11-26 16:49 GMT+01:00 Dominique d'Humières <dominiq@lps.ens.fr>:
>> If there is no objection, I’ll commit the following patch
>
> Looks good to me!
>
> If you want, you could also fix the remaining items I mentioned in
> comment 1 in the PR:
> * apply the same fix to GMTIME
> * fix it in the libgfortran sources as well
> * possibly add some more cross-links to intrinsic.texi
>
> Thanks,
> Janus
>
>
>
>> --- ../_clean/gcc/fortran/intrinsic.texi 2016-11-25 22:03:20.000000000 +0100
>> +++ gcc/fortran/intrinsic.texi 2016-11-26 16:47:12.000000000 +0100
>> @@ -9663,11 +9663,11 @@ The elements of @var{VALUES} are assigne
>> seconds
>> @item Minutes after the hour, range 0--59
>> @item Hours past midnight, range 0--23
>> -@item Day of month, range 0--31
>> -@item Number of months since January, range 0--12
>> +@item Day of month, range 1--31
>> +@item Number of months since January, range 0--11
>> @item Years since 1900
>> @item Number of days since Sunday, range 0--6
>> -@item Days since January 1
>> +@item Days since January 1, range 0--365
>> @item Daylight savings indicator: positive if daylight savings is in
>> effect, zero if not, and negative if the information is not available.
>> @end enumerate
>>
>> Dominique
>>
>>> Le 26 nov. 2016 à 16:02, Francisco Pena <fran.pena@usc.es> a écrit :
>>>
>>> Thank you guys,
>>>
>>> I have reported the documentation bug,
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78545
>>
More information about the Fortran
mailing list