]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Implement correct form of PDT constructors [PR84119]
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Sep 2025 16:39:25 +0000 (17:39 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 6 Sep 2025 16:39:25 +0000 (17:39 +0100)
commit3d2783673d370a259d8a415c2a859079d5ca8e07
tree7450a6d755473cccbfeff82ea9f432dea8361b20
parent8bd31f9248185824ac015a510f954fb13056230b
Fortran: Implement correct form of PDT constructors [PR84119]

2025-09-06  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/84119
* resolve.cc (reset_array_ref_to_scalar): New function using
chunk broken out from gfc_resolve_ref.
(gfc_resolve_ref): Call the new function, the first time for
PDT type parameters and the second time for LEN inquiry refs.

gcc/testsuite/
PR fortran/84119
* gfortran.dg/pdt_20.f03: Modify to deal with scalar type parm.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pdt_20.f03