[patch,gfortran] PR 24503: Character functions of non-constant length
Steven Bosscher
stevenb@suse.de
Sat Oct 29 12:42:00 GMT 2005
On Friday 28 October 2005 13:01, Erik Edelmann wrote:
> Bubblestrapped and tested on Linux/x86. OK to commit?
>
> 2005-10-28 Erik Edelmann <eedelman@gcc.gnu.org>
>
> PR fortran/18883
> * trans-decl.c (gfc_finish_var_decl): Add decl to the
> current function, rather than the parent. Make
> assertion accept fake result variables.
> * trans-expr.c (gfc_conv_variable): If the character
> length of an ENTRY isn't set, get the length from
> the master function instead.
>
>
>
> 2005-10-28 Erik Edelmann <eedelman@gcc.gnu.org>
>
> PR fortran/18883
> * gfortran.dg/char_result_9.f90: New.
> * gfortran.dg/char_result_10.f90: New.
As you say, not ideal. But I can't think of a better "easy" fix either,
neither can FX (I asked on IRC), so let's just say this is good enough :-)
Go ahead and commit this.
Thanks,
Gr.
Steven
More information about the Fortran
mailing list