When compiling the following test code: 100 end
I get: [/tmp]# gfortran-dev test.f90 test.f90:1.4: 100 1 Warning: Ignoring statement label in empty statement at (1) But with -Werror and -fmax-errors=1: [/tmp]# gfortran-dev test.f90 -fmax-errors=1 -Werror Fatal Error: Error count reached limit of 1. Which is a bit misleading as it does no longer mention what the error itself is. -- Summary: Error not printed with -Werror and -fmax-errors=1 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: domob at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41459