[Bug c++/82790] [GCC 5, 6, 7] -Wuseless-cast doesn't detect unnecessary removal of const

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 1 11:24:00 GMT 2017


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|normal                      |enhancement

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This seems like a fairly niche warning for an uncommon problem.

Neither Clang nor EDG warns about this either.


More information about the Gcc-bugs mailing list