re PR fortran/18109 (ICE with explicit array of strings)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 31 May 2005 17:19:11 +0000 (17:19 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 31 May 2005 17:19:11 +0000 (17:19 +0000)
commit2b052ce2f5a1c84ca9efded4df9308669b9e25e5
tree9a856e4a4daa847c9ca97e91ae29830d2728f4b1
parentd763bb10051498ab4bafe220b644f2aa414de381
re PR fortran/18109 (ICE with explicit array of strings)

2005-05-30  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/18109
PR fortran/18283
PR fortran/19107
* 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.
* fortran/trans-expr.c (gfc_conv_component_ref): Remove the
dereference of scalar character pointer structure components.
* fortran/trans-expr.c (gfc_trans_subarray_assign): Obtain the
string length for the structure component from the component
expression.

From-SVN: r100400
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c