https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99351

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:4a414ac2a58b63002a0c13f4ec65a5cfbec32a98

commit r11-8873-g4a414ac2a58b63002a0c13f4ec65a5cfbec32a98
Author: Harald Anlauf <anl...@gmx.de>
Date:   Sun Aug 15 20:13:11 2021 +0200

    Fortran: fix checks for STAT= and ERRMSG= arguments of SYNC ALL/SYNC IMAGES

    gcc/fortran/ChangeLog:

            PR fortran/99351
            * match.c (sync_statement): Replace %v code by %e in gfc_match to
            allow for function references as STAT and ERRMSG arguments.
            * resolve.c (resolve_sync): Adjust checks of STAT= and ERRMSG= to
            being definable arguments.  Function references with a data
            pointer result are accepted.
            * trans-stmt.c (gfc_trans_sync): Adjust assertion.

    gcc/testsuite/ChangeLog:

            PR fortran/99351
            * gfortran.dg/coarray_sync.f90: New test.
            * gfortran.dg/coarray_3.f90: Adjust error messages.

    (cherry picked from commit bbf19f9c20515da9fcd23f08c8139427374e8d77)

Reply via email to