[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 30 15:04:00 GMT 2013


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-10-30
          Component|c++                         |libstdc++
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is because warnings are suppressed by default in system headers, and the
undefined delete operation occurs in a system header.  You get the warning if
you use -Wsystem-headers

I don't see an easy way to force the warning to always be emitted though.



More information about the Gcc-bugs mailing list