https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122434
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:46dcc8e575c7043aa5cd7ff02ac83e390a70c50f commit r16-4704-g46dcc8e575c7043aa5cd7ff02ac83e390a70c50f Author: Paul Thomas <[email protected]> Date: Wed Oct 29 09:20:24 2025 +0000 Fortran: Fix recursive PDT function invocation [PR122433, PR122434] 2025-10-29 Paul Thomas <[email protected]> gcc/fortran PR fortran/122433 * decl.cc (gfc_get_pdt_instance): Prevent a PDT component of the same type as the template from being converted into an instance. PR fortran/122434 * resolve.cc (gfc_impure_variable): The result of a pure function is a valid allocate object since it is pure. gcc/testsuite/ PR fortran/122433 * gfortran.dg/pdt_62.f03: New test. PR fortran/122434 * gfortran.dg/pdt_63.f03: New test.
