[Patch, fortran] PR91588 - ICE in check_inquiry, at fortran/expr.c:2673

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Patch, fortran] PR91588 - ICE in check_inquiry, at fortran/expr.c:2673

Paul Richard Thomas
The attached bootstraps and regtests on FC30/x86_64 - OK for trunk?

It strikes me that this should be backported since the bug is rather
fundamental and ispresent all the way back to version 4.8. An obvious
question is how far back? To 8-branch?

Cheers

Paul

2019-09-15  Paul Thomas  <[hidden email]>

    PR fortran/91588
    * expr.c (check_inquiry): Remove extended component refs by
    using symbol pointers. If a function argument is an associate
    variable with a constant target, copy the target expression in
    place of the argument expression. Check that the charlen is not
    NULL before using the string length.
    (gfc_check_assign): Remove extraneous space.

2019-09-15  Paul Thomas  <[hidden email]>

    PR fortran/91588
    * gfortran.dg/associate_49.f90 : New test.

submit.diff (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Patch, fortran] PR91588 - ICE in check_inquiry, at fortran/expr.c:2673

Steve Kargl
On Sun, Sep 15, 2019 at 12:40:02PM +0100, Paul Richard Thomas wrote:
> The attached bootstraps and regtests on FC30/x86_64 - OK for trunk?
>
> It strikes me that this should be backported since the bug is rather
> fundamental and ispresent all the way back to version 4.8. An obvious
> question is how far back? To 8-branch?
>

OK.  If the patch applies cleanly, go back to 8-branch.

--
Steve