re PR fortran/33337 (ICE in gfc_finish_var_decl, at fortran/trans-decl.c:510)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 22 Sep 2007 15:46:41 +0000 (15:46 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 22 Sep 2007 15:46:41 +0000 (15:46 +0000)
commitfdc55763b63d833dccd47781ff5d4b09dd96c1c1
tree67fbb65e9ee062ee2344f0156c199922dd6c94dc
parenta3b2d4e56c6086a6af1aae2ef3a540171609e153
re PR fortran/33337 (ICE in gfc_finish_var_decl, at fortran/trans-decl.c:510)

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

PR fortran/33337
PR fortran/33376
* trans-decl.c (gfc_create_module_variable): Output
derived type parameters.
* arith.c (gfc_parentheses): Return the argument if
it is a constant expression.
* primary.c (gfc_match_rvalue): Remove the clearing of
the module name and the use_assoc attribute for derived
type parameter expressions.

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

PR fortran/33337
* gfortran.dg/derived_comp_array_ref_3.f90: New test.

PR fortran/33376
* gfortran.dg/derived_comp_array_ref_4.f90: New test.

From-SVN: r128672
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/primary.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/derived_comp_array_ref_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/derived_comp_array_ref_4.f90 [new file with mode: 0644]