Re: [Boost-bugs] [Boost C++ Libraries] #5538: boost.mpi miscompiles with gcc4.6 and option -std=c++0x

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5538: boost.mpi miscompiles with gcc4.6 and option -std=c++0x
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-19 10:41:02


#5538: boost.mpi miscompiles with gcc4.6 and option -std=c++0x
---------------------------------------------------+------------------------
  Reporter: christophe.prudhomme@… | Owner: dgregor
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: mpi
   Version: Boost 1.46.1 | Severity: Regression
Resolution: | Keywords: mpi stdc=c++0x
---------------------------------------------------+------------------------

Comment (by jwakely.boost@…):

 This is a GCC 4.6 bug that only affects -std=c++0x mode.

 In C++0x mode we assume all allocators provide the C++11 allocator
 interface, which is a bad assumption. The fix (which I've implemented in
 GCC 4.7) is to use std::allocator_traits to support allocators without the
 full interface.

 I'm going to open a GCC bug and will update this ticket with a link.

 A workaround is to provide construct(pointer) in the MPI allocator, or
 even to provide the C++11-style:

   template<typename... Args> void construct(T*, Args&&...);

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5538#comment:3>
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:08 UTC