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.