{Patch, fortran] PR125669 - [PDT] Parameterized constant size and string length components are allocated and freed
Jerry Delisle
jvdelisle2@gmail.com
Mon Jun 8 14:29:38 GMT 2026
```
This looks quite simple. Thanks for the fix.
Ok for mainline and backport at will.
Regards,
Jerry
```
On Mon, Jun 8, 2026, 4:37 AM Paul Richard Thomas <
paul.richard.thomas@gmail.com> wrote:
> Hello all,
>
> I have been aware of this problem for a long time but did not get
> around to fixing it:
>
> Even if all the bounds of parameterized array components all
> simplified to constants, gfortran has been setting the pdt_array
> attribute, which results in unnecessary mallocs and frees. The same is
> true of parameterized constant length character components.
>
> The attached patch fixes the problem and passes regression testing on
> FC44/x86_64.
>
> OK for mainline and backporting to gcc-16?
>
> Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20260608/92787a10/attachment.htm>
More information about the Fortran
mailing list