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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Kथà¤nig <tkoe...@gcc.gnu.org>:

https://gcc.gnu.org/g:2ff0f48819c8a7ed5d7c03e2bfc02e5907e2ff1a

commit r11-1230-g2ff0f48819c8a7ed5d7c03e2bfc02e5907e2ff1a
Author: José Rui Faustino de Sousa <jrfso...@gmail.com>
Date:   Thu Jun 11 14:14:30 2020 +0200

    Wrong array section bounds when passing to an intent-in pointer dummy.

    Add code to allow for the creation a new descriptor for array
    sections with the correct one based indexing.

    Rework the generated descriptors indexing (hopefully) fixing the
    wrong offsets generated.

    gcc/fortran/ChangeLog:

    2020-06-11  José Rui Faustino de Sousa  <jrfso...@gmail.com>

            PR fortran/52351
            PR fortran/85868
            * trans-array.c (gfc_conv_expr_descriptor): Enable the
            creation of a new descriptor with the correct one based
            indexing for array sections.  Rework array descriptor
            indexing offset calculation.

    gcc/testsuite/ChangeLog:

    2020-06-11  José Rui Faustino de Sousa  <jrfso...@gmail.com>

            PR fortran/52351
            PR fortran/85868
            * gfortran.dg/coarray_lib_comm_1.f90: Adjust match test for
            the newly generated descriptor.
            * gfortran.dg/PR85868A.f90: New test.
            * gfortran.dg/PR85868B.f90: New test.

Reply via email to