Hello Kay,

The above website reads: "9.108 FINDLOC — Search an array for a value

Description: Determines the location of the element in the array with the value 
given in the VALUE argument, or, if the DIM argument is supplied, determines the 
locations of the maximum element along each row of the array in the DIM direction. 
"

This was seemingly copied without change from the MAXLOC documentation, but "maximum 
element" should probably be changed to "matching elements", otherwise this makes no 
sense (to me at least).

Is there someone reading this list who can fix this?

Thanks for the report!
I have just committed the attached patch as obvious and simple
after checking with "make dvi" and "make pdf".

I will backport this shortly.

Fix description of FINDLOC result.

gcc/fortran/ChangeLog:

        * intrinsic.texi: Fix description of FINDLOC result.

Best regards

        Thomas
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 13325ede3e3..eda87ea6a2c 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -6154,7 +6154,8 @@ END PROGRAM
 @item @emph{Description}:
 Determines the location of the element in the array with the value
 given in the @var{VALUE} argument, or, if the @var{DIM} argument is
-supplied, determines the locations of the maximum element along each
+supplied, determines the locations of the elements equal to the
+@var{VALUE} argument element along each
 row of the array in the @var{DIM} direction.  If @var{MASK} is
 present, only the elements for which @var{MASK} is @code{.TRUE.} are
 considered.  If more than one element in the array has the value

Reply via email to