diff options
author | José Rui Faustino de Sousa <jrfsousa@gmail.com> | 2020-06-11 13:24:55 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2020-06-11 13:25:59 +0200 |
commit | 6a07010b774cb5a0b1790b857e69d3d8534eebd2 (patch) | |
tree | ddfeb25691fdab43f36f9aea41814c539064755e /gcc/fortran/trans-array.c | |
parent | 419c355c7a871513e1065b7cec32dd456eb4a0e5 (diff) | |
download | gcc-6a07010b774cb5a0b1790b857e69d3d8534eebd2.zip gcc-6a07010b774cb5a0b1790b857e69d3d8534eebd2.tar.gz gcc-6a07010b774cb5a0b1790b857e69d3d8534eebd2.tar.bz2 |
Patch to Bug 94022 - Array slices of assumed-size arrays.
Make sure that when passing array sections of assumed-size arrays to
procedures expecting an assumed-rank array the upper bound of the
last dimension of the array section does not get improperly reset
to -1 to mark it has an assumed size array.
gcc/fortran/ChangeLog:
2020-06-11 José Rui Faustino de Sousa <jrfsousa@gmail.com>
PR fortran/94022
* trans-expr.c (gfc_conv_procedure_call): In the case of
assumed-size arrays ensure that the reference is to a full array.
gcc/testsuite/ChangeLog:
2020-06-11 José Rui Faustino de Sousa <jrfsousa@gmail.com>
PR fortran/94022
* gfortran.dg/PR94022.f90: New test.
Diffstat (limited to 'gcc/fortran/trans-array.c')
0 files changed, 0 insertions, 0 deletions