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

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

https://gcc.gnu.org/g:118a6c3247bb30ef932341cec3ca15e2c6304b69

commit r15-7459-g118a6c3247bb30ef932341cec3ca15e2c6304b69
Author: Harald Anlauf <anl...@gmx.de>
Date:   Mon Feb 10 18:47:45 2025 +0100

    Fortran: checking of pointer targets for structure constructors [PR56423]

    Check the target of a pointer component in a structure constructor for same
    ranks, and that the initial-data-target does not have vector subscripts.

            PR fortran/56423

    gcc/fortran/ChangeLog:

            * resolve.cc (resolve_structure_cons): Check rank of pointer
target;
            reject pointer target with vector subscripts.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/derived_constructor_comps_2.f90: Adjust test.
            * gfortran.dg/derived_constructor_comps_8.f90: New test.

Reply via email to