Said option has no effect.
Confirmed.
[RFC][PATCH] is here: http://gcc.gnu.org/ml/fortran/2006-04/msg00266.html
-pedantic-errors also has no effect. From a quick look, it does not occur in fortran/* at all and should probably be removed. I'm preparing an updated patch to add proper -Werror support that emits 'Warning' for warnings and treats them as errors. The patch from #2 emitted the string 'Error' instead, so may not be appropriate.
Subject: Bug number pr21061 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00551.html
Subject: Bug 21061 Author: aldot Date: Sun Nov 5 14:57:24 2006 New Revision: 118501 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118501 Log: 2006-11-05 Bernhard Fischer <aldot@gcc.gnu.org> PR fortran/21061 * error.c (gfc_warning): If warnings_are_errors then treat warnings as errors with respect to the exit code. (gfc_notify_std): Ditto. (gfc_warning_now): Ditto. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/error.c
Fixed on trunk, closing.
Subject: Bug 21061 Author: aldot Date: Sat Apr 14 19:33:11 2007 New Revision: 123820 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123820 Log: 2007-04-14 Bernhard Fischer PR fortran/21061 * gfortran.dg/warnings_are_errors_1.f90: New testcase. * gfortran.dg/warnings_are_errors_1.f: New testcase. Added: trunk/gcc/testsuite/gfortran.dg/warnings_are_errors_1.f trunk/gcc/testsuite/gfortran.dg/warnings_are_errors_1.f90 Modified: trunk/gcc/testsuite/ChangeLog