[Bug fortran/107406] lock_type
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 11 22:23:21 GMT 2025
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 <jvdelisle@gcc.gnu.org>:
https://gcc.gnu.org/g:89110c5386b69391fe7ec549f89cdf89c7ab3a81
commit r16-6043-g89110c5386b69391fe7ec549f89cdf89c7ab3a81
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
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 <vehre@gcc.gnu.org>
More information about the Gcc-bugs
mailing list