https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89707
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:f7dee170ba6d37aba6a9e1fa73711e4e03e42990 commit r16-3529-gf7dee170ba6d37aba6a9e1fa73711e4e03e42990 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Tue Sep 2 21:51:33 2025 +0100 Fortran: Allow PDT parameterized procedure pointer components [PR89707] 2025-09-02 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/89707 * decl.cc (gfc_get_pdt_instance): Copy the typebound procedure field from the PDT template. If the template interface has kind=0, provide the new instance with an interface with a type spec that points to that of the parameterized component. (match_ppc_decl): When 'saved_kind_expr' this is a PDT and the expression should be copied to the component kind_expr. * gfortran.h: Define gfc_get_tbp. gcc/testsuite/ PR fortran/89707 * gfortran.dg/pdt_43.f03: New test.