[Patch/gfortran] PR18109
Paul Thomas
paulthomas2@wanadoo.fr
Sun May 29 18:24:00 GMT 2005
This patch cures pr18109 that arise because calls such as: call foo
((/"abcd",efgh"/)) cause seg faults.
Bubblestrapped and regtested on i686/RH9: OK to commit?
The next stop will be character actual arguments in derived
type(structure) constructors (PR19017) and assignments to derived type
components(PR19928) because they are very closely related to the
previous patches. Watch this space!
Regards
Paul T
2005-05-29 Paul Thomas <pault@gcc.gnu.org>
PR fortran/18109
* fortran/trans-array.c (gfc_conv_expr_descriptor): Obtain the
string length from the expression typespec character length value
and set temp_ss->stringlength and backend_decl. Obtain the
tree expression from gfc_conv_expr rather than gfc_conv_expr_val.
Dereference the expression to obtain the character.
2005-05-29 Paul Thomas <pault@gcc.gnu.org>
* gfortran.dg/char_initialiser_actual.f90:
Test character initialisers as actual arguments.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr18109.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050529/52f4bf59/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: char_initialiser_actual.f90
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050529/52f4bf59/attachment.f90>
More information about the Gcc-patches
mailing list