]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix PDT constructors in associate [PR122501, PR122524]
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 5 Nov 2025 12:11:00 +0000 (12:11 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 5 Nov 2025 12:11:00 +0000 (12:11 +0000)
commit071942e587734672e561f50837794fbddc94559a
tree230df612a87bed2a787f6a9f11638d8ee1f374ff
parentdd62c97f1227d36770ff2e18411038f147e0bb5f
Fortran: Fix PDT constructors in associate [PR122501, PR122524]

2025-11-05  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/122501
PR fortran/122524
* primary.cc (gfc_convert_to_structure_constructor): Correct
whitespace issue.
(gfc_match_rvalue): Remove the attempt to match specific procs
before filling out PDT constructor. Instead, defer this until
resolution with the condition that there not be a following
arglist and more than one procedure in the generic interface.

gcc/testsuite/
PR fortran/122501
* gfortran.dg/pdt_66.f03: New test.

PR fortran/122524
* gfortran.dg/pdt_67.f03: New test.
gcc/fortran/primary.cc
gcc/testsuite/gfortran.dg/pdt_66.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pdt_67.f03 [new file with mode: 0644]