]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/decl.c
re PR fortran/31564 (Error: Type/rank mismatch in argument)
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 5 Sep 2007 13:34:25 +0000 (13:34 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 5 Sep 2007 13:34:25 +0000 (13:34 +0000)
commita99288e554007c0ac5ecfdc7733de19f1a1965dc
treecec6ce2218b24f0fa23d3e5fe993d76ef4a2d9e7
parent8e4bf5c78280d8a41ff53c09e73796fda078c278
re PR fortran/31564 (Error: Type/rank mismatch in argument)

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.

From-SVN: r128130
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]