From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4DA03858291; Thu, 1 Jun 2023 14:07:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4DA03858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685628475; bh=1cxM6DL6V3CaE7J8vPJpTuM65Gs+68Vl4CgYprxq09g=; h=From:To:Subject:Date:From; b=M48GqlDEryDkLd7Inwr4vAYieWO8diraiYr60NvFy0rUZFRhKs74wvetZ56o8AaSz KJS7y651tknZZTwGoknTeQfnp6d9/wwHAVaRzBy+fVpJ95hOQt6iuN0ZIgdeaVAYsm 2ty/XFIrSqmDKqMalGE03cicNA4cKAfdepUWOAqg= From: "andrew at fluidgravity dot co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110081] New: Unhelpful error message: "(null):0: confused by earlier errors, bailing out" Date: Thu, 01 Jun 2023 14:07:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew at fluidgravity dot co.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110081 Bug ID: 110081 Summary: Unhelpful error message: "(null):0: confused by earlier errors, bailing out" Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: andrew at fluidgravity dot co.uk Target Milestone: --- The following code compiles with neither gfortran-11 nor gfortran-12, but d= oes compile with gfortran-10 and earlier. The error message just says "(null):0: confused by earlier errors, bailing out" without giving any indication what= the problem is. (The actual problem seems to be the clash between the variable = name 'p' in the common block and the module name 'p'.) MODULE commons IMPLICIT NONE INTEGER :: p COMMON /c/ p END MODULE p IMPLICIT NONE SAVE CONTAINS SUBROUTINE sub USE commons END SUBROUTINE sub END $ gfortran-11 -c code.f90=20 (null):0: confused by earlier errors, bailing out=