[Bug fortran/122501] [PDT] generic interface not recognized for user-defined structure constructor
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 5 12:11:14 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122501
--- 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:071942e587734672e561f50837794fbddc94559a
commit r16-5044-g071942e587734672e561f50837794fbddc94559a
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Wed Nov 5 12:11:00 2025 +0000
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.
More information about the Gcc-bugs
mailing list