https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125669

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Paul Thomas <[email protected]>:

https://gcc.gnu.org/g:4e1bbb0ac3183a0b3527ae2482f9de7014f266c3

commit r16-9075-g4e1bbb0ac3183a0b3527ae2482f9de7014f266c3
Author: Paul Thomas <[email protected]>
Date:   Mon Jun 8 12:20:40 2026 +0100

    Fortran: [PDT] Prevent unnecessary mallocs and frees. [PR125669]

    2026-06-07  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/125669
            * decl.cc (gfc_get_pdt_instance): If the bound expressions for
            and array component, of the length expression for a character
            component, gave simplified to a constant, do not set attributes
            pdt_array and pdt_string respectively.

    gcc/testsuite/
            PR fortran/125669
            * gfortran.dg/pdt_92.f03: New test.

    (cherry picked from commit cf6fe3baf828c3e6cbb4b1898ff702030ae06d5c)

Reply via email to