This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/14928] [gfortran] minval intrinsic does not understand mask
- From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2004 22:23:43 -0000
- Subject: [Bug fortran/14928] [gfortran] minval intrinsic does not understand mask
- References: <20040412204218.14928.schnetter@aei.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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