re PR fortran/34784 (implicit character(s) hides type of selected_int_kind intrinsic)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 20 Jan 2008 08:22:56 +0000 (08:22 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 20 Jan 2008 08:22:56 +0000 (08:22 +0000)
commitf2d3cb2501aa64980e32b1ab6ef7179bf64a4dd5
tree9d64879d44fe6ed386e45de8c13efc7841555948
parent2045a99abbd89083bbec5826e71c01bacd153dd3
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
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/primary.c
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_20.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/array_constructor_21.f90 [new file with mode: 0644]