re PR fortran/31219 (ICE on array of character function results)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 26 May 2007 11:25:36 +0000 (11:25 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 26 May 2007 11:25:36 +0000 (11:25 +0000)
commit0ee8e25059355c772a3e7c7eb88d502496bc7922
tree6b71a217017b2b1fcc8dac597c2745ed8da1cbb6
parent150594ba69066ade4b78e51d0a20ef9a16029bc2
re PR fortran/31219 (ICE on array of character function results)

2007-05-26 Paul Thomas <pault@gcc.gnu.org>

PR fortran/31219
* trans.h : Add no_function_call bitfield to gfc_se structure.
Add stmtblock_t argument to prototype of get_array_ctor_strlen.
* trans-array.c (get_array_ctor_all_strlen): New function.
(get_array_ctor_strlen): Add new stmtblock_t argument and call
new function for character elements that are not constants,
arrays or variables.
(gfc_conv_array_parameter): Call get_array_ctor_strlen to get
good string length.
* trans-intrinsic (gfc_conv_intrinsic_len): Add new argument
to call of get_array_ctor_strlen.

2007-05-26 Paul Thomas <pault@gcc.gnu.org>

PR fortran/31219
* gfortran.dg/array_constructor_17.f90: New test.

From-SVN: r125088
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_17.f90 [new file with mode: 0644]