[Patch, fortran] PR31219 - ICE on array of character function results
Paul Richard Thomas
paul.richard.thomas@gmail.com
Fri May 25 20:13:00 GMT 2007
Tobias,
Attached is a new version that runs #1 as well. This latter is
incorporated in the testscase.
Bootstrapped and regtested on x86_ia64/FC5 - OK for trunk?
Paul
2007-05-25 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-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31219
* gfortran.dg/array_constructor_17.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr31219a.diff
Type: text/x-patch
Size: 6763 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070525/331e4fc3/attachment.bin>
More information about the Fortran
mailing list