]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: ALLOCATE with array-valued MOLD expression fails [PR122669]
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Dec 2025 07:54:39 +0000 (07:54 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Dec 2025 07:54:39 +0000 (07:54 +0000)
commite48b0e8c048d2f101d14475affe4b8222f64dbb6
tree8a2bf3d98eb818858b0f91db53d06e6fef6d3167
parent8387f1160d28c21592d29f70282eb38104b27356
Fortran: ALLOCATE with array-valued MOLD expression fails [PR122669]

2025-12-06  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/122669
* resolve.cc (resolve_allocate_deallocate): Mold expressions
with an array reference and a constant size must be resolved
for each allocate object.

gcc/testsuite
PR fortran/122669
* gfortran.dg/pdt_73.f03: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pdt_73.f03 [new file with mode: 0644]