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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We already warn:

prog.cc: In member function 'void A::test()':
prog.cc:3:21: warning: nonnull argument 'this' compared to NULL
[-Wnonnull-compare]
   void test(void) { if (this == 0) bar();}
                     ^~

Reply via email to