[Bug fortran/122693] [PDT] Failure to recognize variable names in function with a local allocatable PDT array

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 6 08:05:57 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122693

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:

https://gcc.gnu.org/g:78c787bbe593b24d73dbcfe59b8f6103be1e798f

commit r16-5936-g78c787bbe593b24d73dbcfe59b8f6103be1e798f
Author: Paul Thomas <pault@gcc.gnu.org>
Date:   Sat Dec 6 08:05:41 2025 +0000

    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.


More information about the Gcc-bugs mailing list