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

--- Comment #13 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #11)
> I think you need to add a line
> 
> ! { dg-options "-pedantic" }
> 
> to elemental_optional_args_6.f90 (untested).

I'd suggest to use -Wpedantic, since this is the "modern" name (and consistent
with all the other -Wx flags) and it is what will be printed in the diagnostic.
Moreover, -Wno-pedantic is valid, but -no-pedantic is not.

With no dg-options, testcases are run with some default options, and those seem
to include -pedantic-errors (no idea why).

Reply via email to