OSDN Git Service

2007-09-05 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Sep 2007 13:34:25 +0000 (13:34 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Sep 2007 13:34:25 +0000 (13:34 +0000)
commit03c2a028331cff77958aa9c35b04f6b14647b7d4
treecec6ce2218b24f0fa23d3e5fe993d76ef4a2d9e7
parentb45b55a5bb10842387fc91e2d4adc3872999bfd8
2007-09-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31564
* primary.c (gfc_match_rvalue): Make expressions that refer
to derived type parameters that have array references into
variable expressions.  Remove references to use association
from the symbol.

PR fortran/33241
* decl.c (add_init_expr_to_sym): Provide assumed character
length parameters with the length of the initialization
expression, if a constant, or that of the first element of
an array.

2007-09-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31564
* gfortran.dg/derived_comp_array_ref_2.f90: New test.

PR fortran/33241
* gfortran.dg/char_length_10.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128130 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_length_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/derived_comp_array_ref_2.f90 [new file with mode: 0644]