Re: [Boost-bugs] [Boost C++ Libraries] #12499: Memory allocation fails

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12499: Memory allocation fails
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-14 16:01:14


#12499: Memory allocation fails
-------------------------------+-------------------------------------
  Reporter: stephan.menzel@… | Owner: igaztanaga
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: interprocess
   Version: Boost 1.62.0 | Severity: Regression
Resolution: | Keywords: container, interprocess
-------------------------------+-------------------------------------

Comment (by igaztanaga):

 There is something strange with the optimizer. If I just use internal
 functions of operator[] everything goes OK. One workaround I've found is
 to modify line :

 {{{
 BOOST_MOVE_CONVERSION_AWARE_CATCH( operator[] , key_type, mapped_type&,
 this->priv_subscript)
 }}}

 with

 {{{
 BOOST_MOVE_CONVERSION_AWARE_CATCH( operator[] , key_type,
 BOOST_CONTAINER_FORCEINLINE mapped_type&, this->priv_subscript)
 }}}

 With that change the optimizer seems to work ok in the test. Could you
 check that change makes your code OK again?

 It seems like a MSVC bug, as in 32 bit versions there is no problem and
 other sanitizers don't seeem to catch any problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12499#comment:5>
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:20 UTC