[Bug c++/16168] -Weffc++ item 14 improvements

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 10 16:34:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16168

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to oren from comment #8)
> I think it is reasonable to expect that as long as -Weffc++ is in the
> compiler, it should make sense, and this specific behavior doesn't. If it
> has other flaws, well then, they'd also need to be fixed.

It's reasonable to expect that, but it doesn't match reality, and reality wins.
So if you find the flaws "extremely annoying" then don't use it.

Or, alternatively, contribute a fix to the compiler, ideally breaking up
-Weffc++ into separate warnings that can be enabled/disabled individually, and
fixing the outdated ones ... see PR 16166



More information about the Gcc-bugs mailing list