[Bug c++/96003] [11 Regression] spurious -Wnonnull calling a member on the result of static_cast

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 31 16:39:51 GMT 2020


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

--- Comment #18 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Sergei Trofimovich from comment #8)
> Also, the "'this' pointer null" error wording is not very clear. Should it
> be "'this' pointer is null"? Or "'this' pointer may be null"?

I agree that the text doesn't read quite right.  It's just a slight rewording
of the generic "argument 1 null..." so both might read better if rephrased as
you suggest.


More information about the Gcc-bugs mailing list