This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/14928] New: minval intrinsic does not understand mask
- From: "schnetter at aei dot mpg dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2004 20:42:20 -0000
- Subject: [Bug fortran/14928] New: minval intrinsic does not understand mask
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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