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] New: minval intrinsic does not understand mask


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


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