diff options
author | Harald Anlauf <anlauf@gmx.de> | 2025-02-10 18:47:45 +0100 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2025-02-10 18:47:45 +0100 |
commit | 118a6c3247bb30ef932341cec3ca15e2c6304b69 (patch) | |
tree | 7e555722abc99a7c7407b2b5da56b8ecfc44711f /gcc/config.gcc | |
parent | 4ce8ad684b90606a74f0cccfd9455184046c6c4e (diff) | |
download | gcc-118a6c3247bb30ef932341cec3ca15e2c6304b69.zip gcc-118a6c3247bb30ef932341cec3ca15e2c6304b69.tar.gz gcc-118a6c3247bb30ef932341cec3ca15e2c6304b69.tar.bz2 |
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.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions