https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82173
--- Comment #19 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:cd98d18005dcda2af9e11fd84f8810e08e100cc3 commit r17-5612-gcd98d18005dcda2af9e11fd84f8810e08e100cc3 Author: Paul Thomas <[email protected]> Date: Tue Oct 27 12:57:32 2026 +0100 Fortran: [PDT] (11/16) Parameterized derived type errors [PR82173] 2026-10-27 Paul Thomas <[email protected]> gcc/fortran PR fortran/82173 * decl.cc (get_proc_name): Transfer the interface result parms to the stashed procedure decl 'sym->tlink'... (gfc_match_submod_proc): ... so that they can be copied to the final procedure symbol. * resolve.cc (resolve_pdt): Finally, transfer the parms to the explicit result, if present. * trans-decl.cc (gfc_trans_deferred_vars): If a PDT procedure result has no default initializer or it is in a submodule then allocate the parameterized components using its param_list if present. * trans-stmt.cc (gfc_trans_allocate): If a PDT MOLD expr3 is a variable, use the symbol's param_list. Assert that there is a param_list. gcc/testsuite/ PR fortran/82173 * gfortran.dg/pdt_bug16.f90: New test. * gfortran.dg/pdt_bug23.f90: New test.
