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

schnetter at aei dot mpg dot de gcc-bugzilla@gcc.gnu.org
Mon Apr 12 21:12:00 GMT 2004


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



More information about the Gcc-bugs mailing list