[Bug c++/85043] -Wuseless-cast false positive for temporary objects
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 27 09:51:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85043
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|paolo at gcc dot gnu.org |
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Noticed only today that the warning is documented correctly:
Warn when an expression is casted to its own type.
thus, all in all, I'm not at all convinced that we want to completely suppress
the warning for class types. Maybe we could think about adding levels to it,
like for -Wstrict-aliasing, or something similar.
More information about the Gcc-bugs
mailing list