[Patch, fortran] PR91077 - [8/9/10 Regression] Wrong indexing when using a pointer

Paul Richard Thomas paul.richard.thomas@gmail.com
Sat Jul 6 16:07:00 GMT 2019


As anticipated, 8-branch required a different patch but the difference
was much smaller than anticipated.

Bootstrapped and regetested on FC29/x86_64 - OK for 8-branch?

Paul

2019-07-06  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/91077
    * trans-array.c (gfc_conv_scalarized_array_ref) Delete code
    that gave symbol backend decl for subref arrays.

2019-07-06  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/91077
    * gfortran.dg/pointer_array_11.f90 : New test.

On Sat, 6 Jul 2019 at 11:48, Paul Richard Thomas
<paul.richard.thomas@gmail.com> wrote:
>
> This problem was caused by the code for scalarized array references to
> subref arrays and deferred length variables not obtaining the correct
> array descriptor and so getting the array span wrong. As it happens,
> the lines, following the deleted part, correctly identify when the
> info descriptor is a pointer and provide the span as appropriate.
>
> Bootstrapped and regtested on FC29/x86_64 - OK for trunk and 9-branch?
> 8-branch might be somewhat more difficult to fix but I will give it a
> try. This will require a separate submission.
>
> Paul
>
> 2019-07-06  Paul Thomas  <pault@gcc.gnu.org>
>
>     PR fortran/91077
>     * trans-array.c (gfc_conv_scalarized_array_ref) Delete code
>     that gave symbol backend decl for subref arrays and deferred
>     length variables.
>
> 2019-07-06  Paul Thomas  <pault@gcc.gnu.org>
>
>     PR fortran/91077
>     * gfortran.dg/pointer_array_11.f90 : New test.



-- 
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit8.diff
Type: text/x-patch
Size: 3969 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190706/125e7c3a/attachment.bin>


More information about the Gcc-patches mailing list