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

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>:

https://gcc.gnu.org/g:68700cafd15691802325340d9cf9c1e31ff5abe4

commit r16-3423-g68700cafd15691802325340d9cf9c1e31ff5abe4
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Thu Aug 28 08:10:04 2025 +0100

    Fortran: Implement correct form of PDT constructors [PR82205]

    2025-08-28  Paul Thomas  <pa...@gcc.gnu.org>

    gcc/fortran
            PR fortran/82205
            * decl.cc (gfc_get_pdt_instance): Copy the default initializer
            for components that are not PDT parameters or parameterized. If
            any component is a pointer or allocatable set the attributes
            'pointer_comp' or 'alloc_comp' of the new PDT instance.
            * primary.cc (gfc_match_rvalue): Implement the correct form of
            PDT constructors with 'name (type parms)(component values)'.
            * trans-array.cc (structure_alloc_comps): Apply scalar default
            initializers. Array initializers await the coming change in PDT
            representation.
            * trans-io.cc (transfer_expr): Do not output the type parms of
            a PDT in list directed output.

    gcc/testsuite/
            PR fortran/82205
            * gfortran.dg/pdt_22.f03: Use the correct for PDT constructors.
            * gfortran.dg/pdt_23.f03: Likewise.
            * gfortran.dg/pdt_3.f03: Likewise.

Reply via email to