https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35930

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I understood -pedantic such that it gives warnings if a construct
> does not match the Fortran standard. Currently, it seems to be partially
> used such but also used to warn for non-Fortran-95 (!) constructs.

While experimenting with pr88190 it is not how it works. The current behavior
is more or less

-std=f* gives errors for all the gfortran extensions with/without
-pedantic(-errors),

-std=gnu (default) accepts (most if not all) gfortran extensions, using
-pedantic gives warnings for (some) extensions that do not give without it (see
gfortran.dg/comma_format_extension_4.f),

-std=legacy accepts all gfortran extensions without any warning, unless
-pedantic is used.

>           This should be used in conjunction with -std=f95,
>           -std=f2003, or -std=f2008.

is definitively wrong.

Reply via email to