[Bug c++/81787] [5/6/7/8 Regression] `#pragma GCC diagnostic warning "-fpermissive"` no longer works since gcc 4.8
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 5 10:53:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81787
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Well, -fpermissive isn't really a warning option, but an option changing the
> language dialect and as such it doesn't make sense to allow it just for a
> portion of the code.
(In reply to Jonathan Wakely from comment #4)
> (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.
OK so closing based on these. I chose INVALID, although maybe WONTFIX would be
more accurate?
More information about the Gcc-bugs
mailing list