Boost C++ Libraries: Ticket #5537: boost.mpi miscompiles with gcc4.6 and option -std=c++0x https://svn.boost.org/trac10/ticket/5537 <p> Hello </p> <p> boost.mpi with gcc-4.6 and the option -std=c++0x don't get well together here is a very simple example </p> <hr /> <p> #include &lt;boost/mpi.hpp&gt; </p> <hr /> <blockquote> <p> the issue arises with the use of the -std=c++0x flag to use </p> </blockquote> <p> the new c++ standard. It use to work properly with previous g++ version </p> <p> compile without -std=c++0x g++ -I/usr/include/mpi -c t.cpp no errors </p> <p> try compiling with -std=c++0x </p> <blockquote> <p> g++ -I/usr/include/mpi -std=c++0x -c t.cpp </p> </blockquote> <blockquote> <blockquote> <p> 2011-05-12 22:40:17 </p> </blockquote> </blockquote> <p> prudhomm pts/28 In file included from /usr/include/c++/4.6/memory:67:0, </p> <blockquote> <p> from /usr/include/boost/mpi/allocator.hpp:18, from /usr/include/boost/mpi.hpp:22, from t.cpp:3: </p> </blockquote> <p> /usr/include/c++/4.6/bits/stl_uninitialized.h: In function ‘void std::<span class="underline">uninitialized_default_n_a(_ForwardIterator, _Size, _Allocator&amp;) [with _ForwardIterator = char*, _Size = long unsigned int, _Allocator </span></p> <h1 class="section" id="boost::mpi::allocatorchar:">boost::mpi::allocator&lt;char&gt;]’:</h1> <p> /usr/include/c++/4.6/bits/vector.tcc:474:8: instantiated from ‘void std::vector&lt;_Tp, _Alloc&gt;::_M_default_append(std::vector&lt;_Tp, _Alloc&gt;::size_type) [with _Tp = char, _Alloc = boost::mpi::allocator&lt;char&gt;, std::vector&lt;_Tp, _Alloc&gt;::size_type = long unsigned int]’ /usr/include/c++/4.6/bits/stl_vector.h:592:4: instantiated from ‘void std::vector&lt;_Tp, _Alloc&gt;::resize(std::vector&lt;_Tp, _Alloc&gt;::size_type) [with _Tp = char, _Alloc = boost::mpi::allocator&lt;char&gt;, std::vector&lt;_Tp, _Alloc&gt;::size_type = long unsigned int]’ /usr/include/boost/mpi/detail/packed_oprimitive.hpp:96:46: instantiated from here /usr/include/c++/4.6/bits/stl_uninitialized.h:576:6: error: no matching function for call to ‘boost::mpi::allocator&lt;char&gt;::construct(char*)’ /usr/include/c++/4.6/bits/stl_uninitialized.h:576:6: note: candidate is: /usr/include/boost/mpi/allocator.hpp:168:8: note: void boost::mpi::allocator&lt;T&gt;::construct(boost::mpi::allocator&lt;T&gt;::pointer, const T&amp;) [with T = char, boost::mpi::allocator&lt;T&gt;::pointer = char*] /usr/include/boost/mpi/allocator.hpp:168:8: note: candidate expects 2 arguments, 1 provided </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5537 Trac 1.4.3 smr@… Sun, 29 May 2011 03:33:15 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5537#comment:1 https://svn.boost.org/trac10/ticket/5537#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> This is a duplicate of 5538. Please close. </p> Ticket