This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32989] GETARG intrinsic
- 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: 16 Aug 2007 15:19:07 -0000
- Subject: [Bug libfortran/32989] GETARG intrinsic
- References: <bug-32989-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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