From: Mikael Morin <[email protected]>
This series implements a fix for (part of) PR127448.
The main fix is patch 4. That patch alone causes regressions, which are
avoided in preliminary patches 1 and 3. Patch 2 is an intermediary
refactoring to make the other patches smaller and clearer.
Fortran-tested on aarch64-unknown-linux-gnu. OK for mainline?
Mikael Morin (4):
fortran: Dereference elements of span-addressed character arrays
fortran: Make span_addressed_array return a boolean
fortran: Guess decl for span from within array ref construction
fortran: Copy the span from the target descriptor in pointer
assignments [PR127448]
gcc/fortran/trans-array.cc | 52 ++++++++++-----
gcc/fortran/trans-types.cc | 5 +-
gcc/fortran/trans.cc | 4 +-
.../gfortran.dg/pointer_assign_17.f90 | 65 +++++++++++++++++++
4 files changed, 106 insertions(+), 20 deletions(-)
create mode 100644 gcc/testsuite/gfortran.dg/pointer_assign_17.f90
--
2.53.0