]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Error in nested PDTs with undefined KIND exprs. [122109]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 3 Oct 2025 06:29:50 +0000 (07:29 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 3 Oct 2025 06:29:50 +0000 (07:29 +0100)
commite4e6a42ae93a6a721de4d9d09be1fee6cea7fa09
tree122c50ce4cc0690ae3e75b25c1b19f4a38f6b39c
parente4ab1f87805a6555bc327538d67067f3a690eddc
Fortran: Error in nested PDTs with undefined KIND exprs. [122109]

2025-10-03  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/122089
* decl.cc (gfc_get_pdt_instance): If gfc_extract_int is true an
error has occurred because the kind expr was not provided. Use
the template in this case and return MATCH_YES.

gcc/testsuite/
PR fortran/122089
* gfortran.dg/pdt_52.f03: New test.
* gfortran.dg/pdt_53.f03: New test.
* gfortran.dg/pdt_54.f03: New test.
gcc/fortran/decl.cc
gcc/testsuite/gfortran.dg/pdt_52.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pdt_53.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pdt_54.f03 [new file with mode: 0644]