]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: [PDT] Failure with local allocatable PDT array [PR122693]
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Dec 2025 08:05:41 +0000 (08:05 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Dec 2025 08:05:41 +0000 (08:05 +0000)
commit78c787bbe593b24d73dbcfe59b8f6103be1e798f
treec841b6c17e2f8c677d7ebe20a933192f14f43d91
parent52154ade9695aed91e3f921d7cb4f0998a7e02bb
Fortran:  [PDT] Failure with local allocatable PDT array [PR122693]

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

gcc/fortran
PR fortran/122693
* array.cc (gfc_match_array_constructor): Stash and restore
gfc_current_ns after the call to 'gfc_match_type_spec'.

gcc/testsuite
PR fortran/122693
* gfortran.dg/pdt_75.f03: New test.
gcc/fortran/array.cc
gcc/testsuite/gfortran.dg/pdt_75.f03 [new file with mode: 0644]