date_and_time in g77

Richard Maine maine@altair.dfrc.nasa.gov
Mon Dec 13 16:26:00 GMT 1999


jruth@lci.kent.edu (Jon Ruth) writes:

> I'm new to gcc/g77 and would appreciate recommendations on the
> following problem....
>      character*10 datizn(3)
>      integer*2 ivalues(8)
>      call date_and_time(datizn(1),datizn(2),datizn(3),ivalues)
> 
> and received the following error message:
> 
> 	call date_and_time(datizn(1),datizn(2),datizn(3),ivalues)
>      	^
> 	Too many arguments passed to intrinsic `DATE_AND_TIME' at (^)

Did this accidentally get reposted?  I answered this (and Toon followed
up on my answer, so I know it got out) 5 days ago.  See the previous
answer (which was in comp.lang.fortran only).

In short, you got the argument type for ivalues wrong.  It should
be integer, not integer*2.  For the longer version, see my previous
post.

-- 
Richard Maine
maine@altair.dfrc.nasa.gov


More information about the Gcc-help mailing list