From 53673d763f9e0c655d4239042bb69993a8d950b5 Mon Sep 17 00:00:00 2001 From: Mark Eggleston Date: Mon, 28 Sep 2020 11:01:40 +0100 Subject: Revert "Fortran : ICE in build_field PR95614" This reverts commit e5a76af3a2f3324efc60b4b2778ffb29d5c377bc. --- gcc/fortran/resolve.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gcc/fortran/resolve.c') diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 3c767a7..f4ce49f 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -936,16 +936,9 @@ static void resolve_common_vars (gfc_common_head *common_block, bool named_common) { gfc_symbol *csym = common_block->head; - gfc_gsymbol *gsym; for (; csym; csym = csym->common_next) { - gsym = gfc_find_gsymbol (gfc_gsym_root, csym->name); - if (gsym && gsym->type != GSYM_UNKNOWN && gsym->type != GSYM_COMMON) - gfc_error_now ("Global entity %qs at %L cannot appear in a " - "COMMON block at %L", gsym->name, - &gsym->where, &csym->common_block->where); - /* gfc_add_in_common may have been called before, but the reported errors have been ignored to continue parsing. We do the checks again here. */ -- cgit v1.1