https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043

--- Comment #45 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Mikael Morin <mik...@gcc.gnu.org>:

https://gcc.gnu.org/g:e72fbb6915c1dd1a52ecef55e10329e353cc3072

commit r12-8228-ge72fbb6915c1dd1a52ecef55e10329e353cc3072
Author: Mikael Morin <mik...@gcc.gnu.org>
Date:   Fri Apr 22 22:52:26 2022 +0200

    fortran: Update index extraction code. [PR102043]

    This avoids a regression on hollerith4.f90 and hollerith6.f90 later in
    the patch series when code generation for array references is changed
    to use pointer arithmetic.

    The problem comes from the extraction of the array index from an
    ARRAY_REF tree, which doesnât work if the tree is not an ARRAY_REF
    any more.

    This updates the code generated for remaining size evaluation to work
    with a source tree that uses either array indexing or pointer
    arithmetic.

            PR fortran/102043

    gcc/fortran/ChangeLog:

            * trans-io.cc: Add handling for the case where the array
            is referenced using pointer arithmetic.

Reply via email to