diff options
author | José Rui Faustino de Sousa <jrfsousa@gmail.com> | 2020-06-11 13:24:55 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:12:13 -0300 |
commit | 8bd590341570187bd5cd3e5f25b59fae4390cdac (patch) | |
tree | 03166f7d3702bf25ec04ef08229cfdb7b81a2871 /gcc/fortran/trans-array.c | |
parent | 314d88307c2b9926e08d83681cdb2d0f3109253a (diff) | |
download | gcc-8bd590341570187bd5cd3e5f25b59fae4390cdac.zip gcc-8bd590341570187bd5cd3e5f25b59fae4390cdac.tar.gz gcc-8bd590341570187bd5cd3e5f25b59fae4390cdac.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