[Bug c++/70295] [6 Regression] bogus -Wnonnull-compare for "dynamic_cast<const FuSelection *>(this) != nullptr"
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 18 14:19:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70295
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The warning goes away without the "eHit &&" in the if condition.
And please note that the testcase was reduced from a big Libreoffice C++ file
with a larger class hierarchy.
More information about the Gcc-bugs
mailing list