[Bug fortran/105526] [Coarray] Missing checks for arguments of type TEAM_TYPE

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 10 18:13:54 GMT 2022


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

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

https://gcc.gnu.org/g:5edd0802696f94012731306c704eaf61d184e09c

commit r13-277-g5edd0802696f94012731306c704eaf61d184e09c
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Mon May 9 22:14:21 2022 +0200

    Fortran: check TEAM arguments to coarray intrinsics

    TEAM arguments to coarray intrinsics must be scalar expressions of type
    TEAM_TYPE of intrinsic module ISO_FORTRAN_ENV.

    gcc/fortran/ChangeLog:

            PR fortran/105526
            * resolve.cc (check_team): New.
            (gfc_resolve_code): Add checks for arguments to coarray intrinsics
            FORM TEAM, CHANGE TEAM, and SYNC TEAM.

    gcc/testsuite/ChangeLog:

            PR fortran/105526
            * gfortran.dg/coarray_50.f90: New test.


More information about the Gcc-bugs mailing list