This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/69495] unused-label warning does not tell which flag triggered it
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Jan 2016 15:08:38 +0000
- Subject: [Bug fortran/69495] unused-label warning does not tell which flag triggered it
- Auto-submitted: auto-generated
- References: <bug-69495-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69495
--- Comment #4 from janus at gcc dot gnu.org ---
Btw, I noticed another loosely related issue concerning misspellings of the
warning flags:
$ gfortran -Wunused-labels test.f90
gfortran: error: unrecognized command line option â-Wunused-labelsâ
$ gfortran -Wno-unused-labels test.f90
(no error!)
$ gfortran -Wall -Wno-unused-labels test.f90
f951: Warning: unrecognized command line option â-Wno-unused-labelsâ
This seems very inconsistent: All three calls involve an invalid flag, but the
diagnostics is very different for each of them (it's particularly bad that the
second case does not give any kind of feedback). Is there a reason for this
behavior?