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.