public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/110081] New: Unhelpful error message: "(null):0: confused by earlier errors, bailing out"
@ 2023-06-01 14:07 andrew at fluidgravity dot co.uk
  2023-06-01 17:46 ` [Bug fortran/110081] " anlauf at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: andrew at fluidgravity dot co.uk @ 2023-06-01 14:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110081

            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 does
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 

(null):0: confused by earlier errors, bailing out

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug fortran/110081] Unhelpful error message: "(null):0: confused by earlier errors, bailing out"
  2023-06-01 14:07 [Bug fortran/110081] New: Unhelpful error message: "(null):0: confused by earlier errors, bailing out" andrew at fluidgravity dot co.uk
@ 2023-06-01 17:46 ` anlauf at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-06-01 17:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110081

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from anlauf at gcc dot gnu.org ---
Duplicate of pr103259, which is fixed in 12.3 and newer.

*** This bug has been marked as a duplicate of bug 103259 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-01 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-01 14:07 [Bug fortran/110081] New: Unhelpful error message: "(null):0: confused by earlier errors, bailing out" andrew at fluidgravity dot co.uk
2023-06-01 17:46 ` [Bug fortran/110081] " anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).