https://gcc.gnu.org/g:301874021bc7294bcccc629a78634e47e8131820
commit r16-7291-g301874021bc7294bcccc629a78634e47e8131820 Author: Harald Anlauf <[email protected]> Date: Wed Feb 4 20:45:50 2026 +0100 Fortran: fix documentation of intrinsic SPLIT [PR123941] PR fortran/123941 gcc/fortran/ChangeLog: * intrinsic.texi: SPLIT is a subroutine, not a function. Improve documentation of its arguments. Diff: --- gcc/fortran/intrinsic.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 7f3b95edffe6..cf81791b8b30 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -14215,7 +14215,7 @@ Fortran 90 and later @table @asis @item @emph{Synopsis}: -@code{RESULT = SPLIT(STRING, SET, POS [, BACK])} +@code{CALL SPLIT(STRING, SET, POS [, BACK])} @item @emph{Description}: Updates the integer @var{POS} to the position of the next (or previous) @@ -14240,10 +14240,10 @@ Subroutine @item @emph{Arguments}: @multitable @columnfractions .15 .70 -@item @var{STRING} @tab Shall be of type @code{CHARACTER}. -@item @var{SET} @tab Shall be of type @code{CHARACTER}. -@item @var{POS} @tab Shall be of type @code{INTEGER}. -@item @var{BACK} @tab (Optional) Shall be of type @code{LOGICAL}. +@item @var{STRING} @tab Shall be a scalar of type @code{CHARACTER}. +@item @var{SET} @tab Shall be a scalar of type @code{CHARACTER}. +@item @var{POS} @tab Shall be a scalar of type @code{INTEGER}. +@item @var{BACK} @tab (Optional) Shall be a scalar of type @code{LOGICAL}. @end multitable @item @emph{Example}:
