This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/14928] [gfortran] minval intrinsic does not understand mask


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]