[Bug c++/81787] [5/6/7/8 Regression] `#pragma GCC diagnostic warning "-fpermissive"` no longer works since gcc 4.8

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 5 10:51:00 GMT 2017


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #2)
> My personal opinion is that we should instead have -Wpermissive, which
> defaults to -Werror=permissive and works like any other -W* option should
> (and would work with #pragma). -fpermissive can then become an alias for
> -Wpermissive, like I did with -pedantic -> -Wpedantic.

No no no no. It's not a warning option.


More information about the Gcc-bugs mailing list