https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122290
--- Comment #14 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:3faaefb65850f6364eb5c568e3ef1bff917eb344 commit r16-4627-g3faaefb65850f6364eb5c568e3ef1bff917eb344 Author: Paul Thomas <[email protected]> Date: Sun Oct 26 07:49:09 2025 +0000 Fortran: Fix generic user operators in PDTs [PR122290] 2025-10-26 Paul Thomas <[email protected]> gcc/fortran PR fortran/122290 * decl.cc (variable_decl): Matching component initializer expressions in PDT templates should be done with gfc_match_expr to avoid reduction too early. If the expression type is unknown copy the component typespec. (gfc_get_pdt_instance): Change comment from a TODO to an explanation. Insert parameter values in initializers. For components that are not marked with PDT attributes, do the full reduction for init expressions. * primary.cc (gfc_match_actual_arglist): Convert PDT kind exprs using the component initializer. * resolve.cc (resolve_typebound_intrinsic_op): Preempt gfc_check_new_interface for pdt_types as well as entities used in submodules. * simplify.cc (get_kind): Remove PDT kind conversion. gcc/testsuite/ PR fortran/122290 * gfortran.dg/pdt_60.f03: New test.
