[Bug analyzer/98830] -Wanalyzer-null-argument on static_cast and inheritance

dmalcolm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 26 11:50:05 GMT 2021


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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-01-26
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks.  The control flow was created by the compiler, not the user (as part of
the static_cast with multiple inheritance).  I take your point that we ought
not to warn for such cases.  I'm looking at how to implement that suppression.


More information about the Gcc-bugs mailing list