[Patch, fortran] PR93833 - [8/9/10 Regression] ICE in trans_array_constructor, at fortran/trans-array.c:2566

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

[Patch, fortran] PR93833 - [8/9/10 Regression] ICE in trans_array_constructor, at fortran/trans-array.c:2566

Paul Richard Thomas
This is yet another case, where a deferred character length variable
loses the character length backend_decl. As previously, converting the
expression and using the string_length recovers it successfully.

Regtested on FC31/x86_64 - OK for trunk, followed by 8- and 9-branches
after a week or two?

Paul

2020-03-08  Paul Thomas  <[hidden email]>

    PR fortran/93833
    * trans-array.c (get_array_ctor_var_strlen): If the character
    length backend_decl cannot be found, convert the expression and
    use the string length. Clear up some minor white space issues in
    the rest of the file.

2020-03-08  Paul Thomas  <[hidden email]>

    PR fortran/93833
    * gfortran.dg/deferred_character_36.f90 : New test.
Reply | Threaded
Open this post in threaded view
|

Re: [Patch, fortran] PR93833 - [8/9/10 Regression] ICE in trans_array_constructor, at fortran/trans-array.c:2566

gcc - fortran mailing list
Unfortunately the mailing list stripped off this attachment so we do
not have a chance to review. As attachments appear to be working
lately, please resubmit this patch.

Fritz

On Sun, Mar 8, 2020 at 8:58 AM Paul Richard Thomas
<[hidden email]> wrote:

>
> This is yet another case, where a deferred character length variable
> loses the character length backend_decl. As previously, converting the
> expression and using the string_length recovers it successfully.
>
> Regtested on FC31/x86_64 - OK for trunk, followed by 8- and 9-branches
> after a week or two?
>
> Paul
>
> 2020-03-08  Paul Thomas  <[hidden email]>
>
>     PR fortran/93833
>     * trans-array.c (get_array_ctor_var_strlen): If the character
>     length backend_decl cannot be found, convert the expression and
>     use the string length. Clear up some minor white space issues in
>     the rest of the file.
>
> 2020-03-08  Paul Thomas  <[hidden email]>
>
>     PR fortran/93833
>     * gfortran.dg/deferred_character_36.f90 : New test.