[Bug c++/69922] Bogus -Wnonnull-compare for: ... ? static_cast<T*>(this) : nullptr

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 23 15:53:00 GMT 2016


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Jakub, can you please check all the different C++ casts for similar issues?

dynamic_cast (should be fine now)
reinterpret_cast
static_cast
const_cast


More information about the Gcc-bugs mailing list