This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70295] [6 Regression] bogus -Wnonnull-compare for "dynamic_cast<const FuSelection *>(this) != nullptr"


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]