------- Comment #3 from burnus at gcc dot gnu dot org  2007-08-16 15:19 -------
> Well, the gfortran doc says "Shall be of type INTEGER(4), N >= 0". This is in
> contradiction with the g77 doc, which says: "Pos: INTEGER not wider than the
> default kind; scalar; INTENT(IN)."

Well, N >= 0 vs. pos > 0 should not be a problem as N = 0 is (where supported)
the name of the invoked program; this helps also with compatibility to other
vendors such as Intel.

> Note that the arguments names are also in disagreement: gfortran says
>   CALL GETARG(N, ARG)
> while g77 has
>   CALL GetArg(Pos, Value)
g95 follows g77.

And Intel has:
CALL GETARG (n, buffer [, status])
(Error: status = -1; otherwise status = number of characters before
padding/trunkation)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32989

Reply via email to