[Bug fortran/107406] lock_type
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 16 02:11:35 GMT 2025
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
<jvdelisle@gcc.gnu.org>:
https://gcc.gnu.org/g:0f800bbcd7c0c73e619d4d23832f9f9315567375
commit r15-10606-g0f800bbcd7c0c73e619d4d23832f9f9315567375
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>
(cherry picked from commit 89110c5386b69391fe7ec549f89cdf89c7ab3a81)
More information about the Gcc-bugs
mailing list