aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/array.c
diff options
context:
space:
mode:
authorPaul Thomas <pault@gcc.gnu.org>2008-01-20 08:22:56 +0000
committerPaul Thomas <pault@gcc.gnu.org>2008-01-20 08:22:56 +0000
commitf2d3cb2501aa64980e32b1ab6ef7179bf64a4dd5 (patch)
tree9d64879d44fe6ed386e45de8c13efc7841555948 /gcc/fortran/array.c
parent2045a99abbd89083bbec5826e71c01bacd153dd3 (diff)
downloadgcc-f2d3cb2501aa64980e32b1ab6ef7179bf64a4dd5.zip
gcc-f2d3cb2501aa64980e32b1ab6ef7179bf64a4dd5.tar.gz
gcc-f2d3cb2501aa64980e32b1ab6ef7179bf64a4dd5.tar.bz2
re PR fortran/34784 (implicit character(s) hides type of selected_int_kind intrinsic)
2008-01-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/34784 * array.c (gfc_check_constructor_type): Clear the expression ts so that the checking starts from the deepest level of array constructor. * primary.c (match_varspec): If an unknown type is changed to default character and the attempt to match a substring fails, change it back to unknown. PR fortran/34785 * trans-array.c (gfc_add_loop_ss_code) : If ss->string_length is NULL for an array constructor, use the cl.length expression to build it. (gfc_conv_array_parameter): Change call to gfc_evaluate_now to a tree assignment. 2008-01-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/34784 * gfortran.dg/array_constructor_20.f90: New test. * gfortran.dg/mapping_2.f90: Correct ubound expression for h4. PR fortran/34785 * gfortran.dg/array_constructor_21.f90: New test. From-SVN: r131675
Diffstat (limited to 'gcc/fortran/array.c')
-rw-r--r--gcc/fortran/array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/array.c b/gcc/fortran/array.c
index 0c30b33..116937b 100644
--- a/gcc/fortran/array.c
+++ b/gcc/fortran/array.c
@@ -1025,6 +1025,7 @@ gfc_check_constructor_type (gfc_expr *e)
cons_state = CONS_START;
gfc_clear_ts (&constructor_ts);
+ gfc_clear_ts (&e->ts);
t = check_constructor_type (e->value.constructor);
if (t == SUCCESS && e->ts.type == BT_UNKNOWN)