[Bug fortran/122670] [PDT] Mismatched types with same name in assignment
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 6 08:00:37 GMT 2025
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 <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:52154ade9695aed91e3f921d7cb4f0998a7e02bb
commit r16-5935-g52154ade9695aed91e3f921d7cb4f0998a7e02bb
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Sat Dec 6 08:00:21 2025 +0000
Fortran: [PDT] Mismatched types with same name in assignment [PR122670]
2025-12-06 Paul Thomas <pault@gcc.gnu.org>
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.
More information about the Gcc-bugs
mailing list