aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2007-08-30 22:10:55 +0000
committerPaul Thomas <pault@gcc.gnu.org>2007-08-30 22:10:55 +0000
commit07368af0833c1bfc29e35a1eabb4f269eafd8825 (patch)
tree4d0ce764a2da2a85fc1156dfef15707121d08af7 /libcpp
parent54b0bc0008d05bb93fd3b1608c616299724fc942 (diff)
downloadgcc-07368af0833c1bfc29e35a1eabb4f269eafd8825.zip
gcc-07368af0833c1bfc29e35a1eabb4f269eafd8825.tar.gz
gcc-07368af0833c1bfc29e35a1eabb4f269eafd8825.tar.bz2
re PR fortran/31879 (ICE with function having array of character variables argument)
2007-08-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/31879 PR fortran/31197 PR fortran/31258 PR fortran/32703 * gfortran.h : Add prototype for gfc_resolve_substring_charlen. * resolve.c (gfc_resolve_substring_charlen): New function. (resolve_ref): Call gfc_resolve_substring_charlen. (gfc_resolve_character_operator): New function. (gfc_resolve_expr): Call the new functions in cases where the character length is missing. * iresolve.c (cshift, eoshift, merge, pack, reshape, spread, transpose, unpack): Call gfc_resolve_substring_charlen for source expressions that are character and have a reference. * trans.h (gfc_trans_init_string_length) Change name to gfc_conv_string_length; modify references in trans-expr.c, trans-array.c and trans-decl.c. * trans-expr.c (gfc_trans_string_length): Handle case of no backend_decl. (gfc_conv_aliased_arg): Remove code for treating substrings and replace with call to gfc_trans_string_length. * trans-array.c (gfc_conv_expr_descriptor): Remove code for treating strings and call gfc_trans_string_length instead. 2007-08-31 Paul Thomas <pault@gcc.gnu.org> PR fortran/31879 * gfortran.dg/char_length_7.f90: New test. * gfortran.dg/char_length_9.f90: New test. * gfortran.dg/char_assign_1.f90: Add extra warning. PR fortran/31197 PR fortran/31258 * gfortran.dg/char_length_8.f90: New test. From-SVN: r127939
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions