diff options
author | José Rui Faustino de Sousa <jrfsousa@gmail.com> | 2020-06-11 15:15:25 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:12:16 -0300 |
commit | 07fdbf4dbe97e80935c774357aa9eb9ba9d5c202 (patch) | |
tree | f98c4892f913f8822ab5c7aa362793cb35a043db /gcc/fortran/expr.c | |
parent | f9287742bfb30163de7769b0aabfb82075760dad (diff) | |
download | gcc-07fdbf4dbe97e80935c774357aa9eb9ba9d5c202.zip gcc-07fdbf4dbe97e80935c774357aa9eb9ba9d5c202.tar.gz gcc-07fdbf4dbe97e80935c774357aa9eb9ba9d5c202.tar.bz2 |
PR95331 - Unlimited polymorphic arrays have wrong bounds.
When iterating over a class array use the bounds provided by the
transformed descriptor (in sym->backend_decl) instead of the original
bounds of the array (in the descriptor passed in the class _data)
which are passed in se->expr.
The patch partially depends on the patch for PR52351 and PR85868, but
does not seems to break anything by itself.
gcc/fortran/ChangeLog:
2020-06-11 José Rui Faustino de Sousa <jrfsousa@gmail.com>
PR fortran/95331
* trans-array.c (gfc_conv_array_ref): For class array dummy
arguments use the transformed descriptor in sym->backend_decl
instead of the original descriptor.
gcc/testsuite/ChangeLog:
2020-06-11 José Rui Faustino de Sousa <jrfsousa@gmail.com>
PR fortran/95331
* gfortran.dg/PR95331.f90: New test.
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions