diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-18 00:48:05 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-18 00:48:05 +0000 |
commit | d9b3f26bfd2dcda4c60d6317ac42db8d348b398d (patch) | |
tree | c59d49b2984c03bcf5e5f018b12cc2f44288e7a1 /contrib | |
parent | 86a940c6087fcf3e23586a30dc4e8354dce6a1d0 (diff) | |
download | gcc-d9b3f26bfd2dcda4c60d6317ac42db8d348b398d.tar.gz |
PR fortran/13930
* decl.c (add_init_expr_to_sym): Remove incorrect check.
(default_initializer): Move to expr.c.
(variable_decl): Don't assign default initializer to variables.
* expr.c (gfc_default_initializer): Move to here.
* gfortran.h (gfc_default_initializer): Add prototype.
* resolve.c (resolve_symbol): Check for illegal initializers.
Assign default initializer.
testsuite/
* gfortran.fortran-torture/execute/der_init_4.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions