PING! Re: [patch, fortran] A partial fix for PR31610 (ICE with transfer)
Brooks Moses
brooks.moses@codesourcery.com
Thu Jun 7 18:31:00 GMT 2007
Ping?
Brooks Moses wrote:
> -------------------------------------------------------------------
> 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
>
> PR fortran/31610
> * target-memory.c (size_character): Check for the typespec
> length as well as the value length.
> (gfc_target_expr_size): Pass the whole expression to
> size_character.
> (encode_character): Check the buffer size against the
> length directly.
> (interpret_array): Use the typespec length, not the value
> length, for character array result expressions.
> (gfc_interpret_character): Pass the whole result to
> size_character.
> * simplify.c (gfc_simplify_transfer): Only simplify if
> arguments are ARRAY, STRUCTURE, or CONSTANT. Pass character
> lengths for array results in ts.cl->length, not in
> value.character.length. Set the buffer to zero before use,
> to avoid accessing uninitialized memory.
>
> -------------------------------------------------------------------
> 2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
>
> PR fortran/31610
> * gfortran.dg/transfer_simplify_5.f90: New test.
>
> -------------------------------------------------------------------
More information about the Fortran
mailing list