https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107406
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:89110c5386b69391fe7ec549f89cdf89c7ab3a81 commit r16-6043-g89110c5386b69391fe7ec549f89cdf89c7ab3a81 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]>
