aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2021-10-15 21:23:17 +0200
committerHarald Anlauf <anlauf@gmx.de>2021-10-15 21:23:17 +0200
commit1e819bd95ebeefc1dc469daa1855ce005cb77822 (patch)
treee92e1e5ba1f1abf39844b4c0e87c50145c49f75e /gcc/gcov.c
parent4aef14b09557ce072f1269bd8a05fa2b1df0eda2 (diff)
downloadgcc-1e819bd95ebeefc1dc469daa1855ce005cb77822.zip
gcc-1e819bd95ebeefc1dc469daa1855ce005cb77822.tar.gz
gcc-1e819bd95ebeefc1dc469daa1855ce005cb77822.tar.bz2
Fortran: validate shape of arrays in constructors against declarations
gcc/fortran/ChangeLog: PR fortran/102685 * decl.c (match_clist_expr): Set rank/shape of clist initializer to match LHS. * resolve.c (resolve_structure_cons): In a structure constructor, compare shapes of array components against declared shape. gcc/testsuite/ChangeLog: PR fortran/102685 * gfortran.dg/derived_constructor_char_1.f90: Fix invalid code. * gfortran.dg/pr70931.f90: Likewise. * gfortran.dg/transfer_simplify_2.f90: Likewise. * gfortran.dg/pr102685.f90: New test. Co-authored-by: Tobias Burnus <tobias@codesourcery.com>
Diffstat (limited to 'gcc/gcov.c')
0 files changed, 0 insertions, 0 deletions