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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jerry DeLisle
<[email protected]>:

https://gcc.gnu.org/g:0f800bbcd7c0c73e619d4d23832f9f9315567375

commit r15-10606-g0f800bbcd7c0c73e619d4d23832f9f9315567375
Author: Jerry DeLisle <[email protected]>
Date:   Wed Dec 10 10:38:29 2025 -0800

    Fortran: Fix wrongly rejected allocatable LOCK_TYPE [PR107406]

            PR fortran/107406

    gcc/fortran/ChangeLog:

            * parse.cc (check_component): Adjust the error check to
            require a codimension if the allocatable type has
            a non-coarray LOCK_TYPE component.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray_lock_3.f90: Remove dg-error on
            valid code.
            * gfortran.dg/coarray_lock_4.f90: Likewise.
            * gfortran.dg/coarray_lock_5.f90: Likwise

            Co-Authored by: Andre Vehreschild <[email protected]>

    (cherry picked from commit 89110c5386b69391fe7ec549f89cdf89c7ab3a81)

Reply via email to