This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30929] -pedantic-error and -Werror don't produce errors!
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 13:08:58 -0000
- Subject: [Bug fortran/30929] -pedantic-error and -Werror don't produce errors!
- References: <bug-30929-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from manu at gcc dot gnu dot org 2007-07-04 13:08 -------
(In reply to comment #4)
>
> No idea how to untangle -pedantic from -Wtabs or -Wampersand if
> -pedantic-errors has been given, but -Werror has not.
>
What gfortran should do is that if pedantic enables Wtabs, then the warnings
should be of the form:
if (pedantic && warn_tabs)
pedantic("whatever");
else if (warn_tabs)
warning("whatever");
pedantic() emits errors if -pedantic-errors, otherwise it emits warnings.
warning() emits errors if -Werror, otherwise it emits warnings.
I guess there would be similar functions in gfortran. (It would be great to
integrate the diagnostics machinery but making things work in a similar way is
already a step forward).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30929