[Bug fortran/91167] -pedantic-errors does not turn -pedantic warnings into errors
mark.eggleston at codethink dot co.uk
gcc-bugzilla@gcc.gnu.org
Mon Jul 15 10:38:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91167
--- Comment #2 from mark.eggleston at codethink dot co.uk ---
On 15/07/2019 11:24, dominiq at lps dot ens.fr wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91167
>
> Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Priority|P3 |P5
> Status|UNCONFIRMED |NEW
> Last reconfirmed| |2019-07-15
> Blocks| |89078
> Ever confirmed|0 |1
> Severity|normal |enhancement
>
> --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> As old as gcc 4.4.7.
>
> Anyway the documentation of -pedantic is wrong (pr35930) and IIRC is not
> handled by gfortran.
From the code it looks like -pedantic is handled as it is checked in
fortran/options,c setting the standards bits accordingly. Warning and
errors produced by gfc_notify_std are output based on standards bit
mask, most GNU and Legacy warnings are output using gfc_notify_standard.
GNU Extension warnings from what I've seen so far are only output if
-pedantic is used as an option.
>
>
> Referenced Bugs:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89078
> [Bug 89078] [meta-bug] Improve the gfortran manual
More information about the Gcc-bugs
mailing list