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

--- Comment #4 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:52154ade9695aed91e3f921d7cb4f0998a7e02bb

commit r16-5935-g52154ade9695aed91e3f921d7cb4f0998a7e02bb
Author: Paul Thomas <[email protected]>
Date:   Sat Dec 6 08:00:21 2025 +0000

    Fortran: [PDT] Mismatched types with same name in assignment [PR122670]

    2025-12-06  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/122670
            * decl.cc (gfc_get_pdt_instance): Ensure that, in an interface
            body, PDT instances imported implicitly if the template has
            been explicitly imported.
            * module.cc (read_module): If a PDT template appears in a use
            only statement, implicitly add the instances as well.

    gcc/testsuite
            PR fortran/122670
            * gfortran.dg/pdt_74.f03: New test.

Reply via email to