https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69495
Bug ID: 69495 Summary: unused-label warning does not tell which flag triggered it Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: janus at gcc dot gnu.org Target Milestone: --- Trivial test case: 100 print *, "test" end Compiling this with -Wall or -Wunused-label yields: 100 print *, "test" 1 Warning: Label 100 at (1) defined but not used As for other warnings, the name of the corresponding flag should be mentioned!