From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10230 invoked by alias); 12 Apr 2004 20:43:22 -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 9909 invoked by uid 48); 12 Apr 2004 20:42:20 -0000 Date: Mon, 12 Apr 2004 21:12:00 -0000 From: "schnetter at aei dot mpg dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20040412204218.14928.schnetter@aei.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/14928] New: minval intrinsic does not understand mask X-Bugzilla-Reason: CC X-SW-Source: 2004-04/txt/msg01019.txt.bz2 List-Id: The minval intrinsic can take an optional mask argument. However, the following code produces an error: subroutine a (b, c) implicit none double precision b(10) integer c c = minloc (b, b<0) end subroutine a The error is In file minloc.f90:5 c = minloc (b, b<0) 1 Error: Array index at (1) must be of INTEGER type Apparently, gfortran expects this to be a "dim" dimension specifier and not a mask. -- Summary: minval intrinsic does not understand mask Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: schnetter at aei dot mpg dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14928