diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2006-05-07 05:46:26 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2006-05-07 05:46:26 +0000 |
commit | 636da744bb32d4679fac4cfc36670899a4408ff1 (patch) | |
tree | bf7e4cc8a301ceceaa53277106c44b7e8f95534e /gcc/fortran/trans-array.c | |
parent | 8f9886536fb02c6711e4cc8be068e3938f3a4775 (diff) | |
download | gcc-636da744bb32d4679fac4cfc36670899a4408ff1.zip gcc-636da744bb32d4679fac4cfc36670899a4408ff1.tar.gz gcc-636da744bb32d4679fac4cfc36670899a4408ff1.tar.bz2 |
re PR fortran/24813 (ICE with scalarization LEN of character types)
2006-05-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24813
* trans-array.c (get_array_ctor_strlen): Remove static attribute.
* trans.h: Add prototype for get_array_ctor_strlen.
* trans-intrinsic.c (gfc_conv_intrinsic_len): Switch on EXPR_ARRAY
and call get_array_ctor_strlen.
2006-05-07 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24813
* gfortran.dg/char_cons_len_1.f90: New test.
From-SVN: r113594
Diffstat (limited to 'gcc/fortran/trans-array.c')
-rw-r--r-- | gcc/fortran/trans-array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c index a5042ea..a620bff 100644 --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -1328,7 +1328,7 @@ get_array_ctor_var_strlen (gfc_expr * expr, tree * len) /* Figure out the string length of a character array constructor. Returns TRUE if all elements are character constants. */ -static bool +bool get_array_ctor_strlen (gfc_constructor * c, tree * len) { bool is_const; |