Thanks for the report. I have now applied the attached patch.
Tobias On 10.03.21 20:44, Russ Childers via Gcc wrote:
https://gcc.gnu.org/onlinedocs/gfortran/MIN.html ...says " The return value corresponds to the maximum value among the arguments, and has the same type and kind as the first argument. " Should be "minimum value" Best, Russ Childers
----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf
commit 9dcc2edfa657d26223f7e74d27af225d4bbf11a9 Author: Tobias Burnus <tob...@codesourcery.com> Date: Wed Mar 10 21:24:18 2021 +0100 Fortran: Fix wording in intrinsic.texi's MIN gcc/fortran/ChangeLog: * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'. diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index ea78f7d343a..73baa34104e 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -10621,21 +10621,21 @@ Elemental function @item @emph{Arguments}: @multitable @columnfractions .15 .70 @item @var{A1} @tab The type shall be @code{INTEGER} or @code{REAL}. @item @var{A2}, @var{A3}, ... @tab An expression of the same type and kind as @var{A1}. (As a GNU extension, arguments of different kinds are permitted.) @end multitable @item @emph{Return value}: -The return value corresponds to the maximum value among the arguments, +The return value corresponds to the minimum value among the arguments, and has the same type and kind as the first argument. @item @emph{Specific names}: @multitable @columnfractions .20 .20 .20 .25 @item Name @tab Argument @tab Return type @tab Standard @item @code{MIN0(A1)} @tab @code{INTEGER(4) A1} @tab @code{INTEGER(4)} @tab Fortran 77 and later @item @code{AMIN0(A1)} @tab @code{INTEGER(4) A1} @tab @code{REAL(4)} @tab Fortran 77 and later @item @code{MIN1(A1)} @tab @code{REAL A1} @tab @code{INTEGER(4)} @tab Fortran 77 and later @item @code{AMIN1(A1)} @tab @code{REAL(4) A1} @tab @code{REAL(4)} @tab Fortran 77 and later @item @code{DMIN1(A1)} @tab @code{REAL(8) A1} @tab @code{REAL(8)} @tab Fortran 77 and later