[Bug c++/56373] -Wzero-as-null-pointer-constant: does not catch issues with smart pointers

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 18 16:06:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56373

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-02-18
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-02-18 16:05:40 UTC ---
So confirming the first issue. I have a simple patch in testing for it.

About the second issue, it was definitely discussed somewhere else too: there
is always a tension between consistently treating in a similar way elementary
types and classes and avoiding warning for common patterns like RAII.



More information about the Gcc-bugs mailing list