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

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

https://gcc.gnu.org/g:bbf19f9c20515da9fcd23f08c8139427374e8d77

commit r12-2915-gbbf19f9c20515da9fcd23f08c8139427374e8d77
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.

Reply via email to