diff options
author | Chung-Lin Tang <cltang@codesourcery.com> | 2021-12-03 17:27:17 +0800 |
---|---|---|
committer | Chung-Lin Tang <cltang@codesourcery.com> | 2021-12-03 17:27:17 +0800 |
commit | 6262e3a22b3d86afc116480bc59a7bb30b0cfd40 (patch) | |
tree | d0720683ed7e0cc6e21395c79bb23c9a4d71fb29 /libcpp | |
parent | 31c200c6e110ced8732332376e69c0958985b926 (diff) | |
download | gcc-6262e3a22b3d86afc116480bc59a7bb30b0cfd40.zip gcc-6262e3a22b3d86afc116480bc59a7bb30b0cfd40.tar.gz gcc-6262e3a22b3d86afc116480bc59a7bb30b0cfd40.tar.bz2 |
fortran: Fix setting of array lower bound for named arrays
This patch fixes a case of setting array low-bounds, found for particular uses
of SOURCE=/MOLD=. This adjusts the relevant part in gfc_trans_allocate() to
set e3_has_nodescriptor only for non-named arrays.
2021-12-03 Tobias Burnus <tobias@codesourcery.com>
gcc/fortran/ChangeLog:
* trans-stmt.c (gfc_trans_allocate): Set e3_has_nodescriptor to true
only for non-named arrays.
gcc/testsuite/ChangeLog:
* gfortran.dg/allocate_with_source_26.f90: Adjust testcase.
* gfortran.dg/allocate_with_mold_4.f90: New testcase.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions