Re: [Boost-bugs] [Boost C++ Libraries] #4200: Virtual functions, non-virtual destructor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4200: Virtual functions, non-virtual destructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-13 14:27:07


#4200: Virtual functions, non-virtual destructor
--------------------------------+-------------------------------------------
  Reporter: klimkin@… | Owner: emildotchevski
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by mgaunard):

 I am getting tons of related errors, some of which come from using
 exception_ptr (which uses shared_ptr and checked_delete under the hood) to
 transfer exceptions between threads.

 warning: deleting object of polymorphic class type
 `boost::error_info<boost::tag_original_exception_type, const
 std::type_info*>' which has non-virtual destructor might cause undefined
 behaviour [-Wdelete-non-virtual-dtor].

 This happens with -Wall on GCC 4.7.

 The fix is trivial, please just include it.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4200#comment:10>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC