From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFCE33858405; Thu, 23 Dec 2021 00:35:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFCE33858405 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103471] [9/10/11/12 Regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1114 Date: Thu, 23 Dec 2021 00:35:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2021 00:35:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103471 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #2 from kargl at gcc dot gnu.org --- An error is being queued in symbol.c(gfc_set_default_type), but error reporting has been disabled for some reason. Changing=20 gfc_error() to gfc_error_now() restores emitting the error message, but is this correct! diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index 179f6029ca3..43691710120 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -303,11 +303,11 @@ gfc_set_default_type (gfc_symbol *sym, int error_flag, gfc_namespace *ns) { const char *guessed =3D lookup_symbol_fuzzy (sym->name, sym); if (guessed) - gfc_error ("Symbol %qs at %L has no IMPLICIT type" + gfc_error_now ("Symbol %qs at %L has no IMPLICIT type" "; did you mean %qs?", sym->name, &sym->declared_at, guessed); else - gfc_error ("Symbol %qs at %L has no IMPLICIT type", + gfc_error_now ("Symbol %qs at %L has no IMPLICIT type", sym->name, &sym->declared_at); sym->attr.untyped =3D 1; /* Ensure we only give an error once. */ }=