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
  • [Bug fortran/110081] New: Un... andrew at fluidgravity dot co.uk via Gcc-bugs

Reply via email to