[patch, fortran, wwwdocs] Fix name of argument to CO_REDUCE

Thomas Koenig tkoenig@netcologne.de
Sun Nov 7 18:18:03 GMT 2021

Hello world,

the attached patches fix the name of the function argument to CO_REDUCE
to conform to Fortran 2018 instead of the TR.

This is a user-visible change, so I have put this both into changes.html
and porting_to.html.

Regression-tested.  OK for trunk?

Best regards


Author: Thomas Koenig <tkoenig@gcc.gnu.org>
Date:   2021-11-07 15:38:35 +0100

     Fix keyword name for co_reduce.


             * intrinsic.c (add_subroutines): Change keyword "operator"
             to the correct one, "operation".
             * check.c (gfc_check_co_reduce): Change OPERATOR to
             OPERATION in error messages.


             * gfortran.dg/co_reduce_2.f90: New test.
             * gfortran.dg/coarray_collective_16.f90: Change OPERATOR
             to OPERATION.
             * gfortran.dg/coarray_collective_9.f90: Likewise.

     Co-authored by: Steve Kargl <steve@gcc.gnu.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 14386 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211107/9a124c7f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1-doc.diff
Type: text/x-patch
Size: 1334 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211107/9a124c7f/attachment-0003.bin>

More information about the Gcc-patches mailing list