]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: [PDT] Mismatched types with same name in assignment [PR122670]
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Dec 2025 08:00:21 +0000 (08:00 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Dec 2025 08:00:21 +0000 (08:00 +0000)
commit52154ade9695aed91e3f921d7cb4f0998a7e02bb
tree0499cf9546bd7ac211bf8ff25100b0d167c12356
parente48b0e8c048d2f101d14475affe4b8222f64dbb6
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.
gcc/fortran/decl.cc
gcc/fortran/module.cc
gcc/testsuite/gfortran.dg/pdt_74.f03 [new file with mode: 0644]