From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18482 invoked by alias); 3 Jun 2004 22:23:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18469 invoked by alias); 3 Jun 2004 22:23:43 -0000 Date: Thu, 03 Jun 2004 22:23:00 -0000 Message-ID: <20040603222343.18468.qmail@sourceware.org> From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040412204218.14928.schnetter@aei.mpg.de> References: <20040412204218.14928.schnetter@aei.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/14928] [gfortran] minval intrinsic does not understand mask X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00388.txt.bz2 List-Id: ------- 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