[Bug fortran/14928] [gfortran] minval intrinsic does not understand mask
Tobias dot Schlueter at physik dot uni-muenchen dot de
gcc-bugzilla@gcc.gnu.org
Thu Jun 3 22:23:00 GMT 2004
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-06-03 22:23 -------
Subject: Re: [gfortran] minval intrinsic does not understand
mask
schnetter at uni-tuebingen dot de wrote:
> Fortran 95 standard. Apart from explaining things in section 12.4.1, it gives
> an example in note 13.2, listing the allowable calling syntaxes for CMPLX,
> which also has two optional arguments. From that it is clear that optional
> arguments may be given without the "name=" syntax essentially as long as all
> optional arguments before this one are also present.
Yes, but note that (in the Fortran 95 draft standard) CMPLX is specified as
CMPLX (X[, Y, KIND])
and MAXLOC as
MAXLOC (ARRAY, DIM[, MASK]) or MASK (ARRAY[, MASK])
(sic)
So MAXLOC is somewhat special. Furthermore in all examples for MAXLOC,
"MASK=" is spelled out if the argument is present. I will look into this
in more detail tomorrow.
- Tobi
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14928
More information about the Gcc-bugs
mailing list