From f1607c0199cf4c62a27a73d580e5bc25eb46e6ef Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Sun, 25 Nov 2007 22:12:19 +0000 Subject: re PR fortran/33152 (Initialization/declaration problems in block data) 2007-11-25 Jerry DeLisle PR fortran/33152 * decl.c (add_init_expr_to_sym): Remove error message. * resolve.c (check_data_variable): Add new check for a data variable that has an array spec, but no ref and issue an error. * match.c (gfc_match_common): Remove error message. From-SVN: r130415 --- gcc/fortran/decl.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/fortran/decl.c') diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index ca17829..d607435 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -1176,15 +1176,6 @@ add_init_expr_to_sym (const char *name, gfc_expr **initp, locus *var_locus) return FAILURE; } - if (attr.in_common - && !attr.data - && *initp != NULL) - { - gfc_error ("Initializer not allowed for COMMON variable '%s' at %C", - sym->name); - return FAILURE; - } - if (init == NULL) { /* An initializer is required for PARAMETER declarations. */ -- cgit v1.1