Boost C++ Libraries: Ticket #3864: boost.multi_index doesn't work with gcc-4.5 in c++0x mode https://svn.boost.org/trac10/ticket/3864 <p> Compiler (gcc 4.5 snapshot 20100121): </p> <pre class="wiki">Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/home/lhtseng/gcc45/libexec/gcc/x86_64-pc-linux-gnu/4.5.0/lto-wrapper Target: x86_64-pc-linux-gnu Thread model: posix gcc version 4.5.0 20100121 (experimental) (GCC) </pre><p> <br /> test.cxx: </p> <pre class="wiki">#include &lt;boost/multi_index_container.hpp&gt; int main() { } </pre><p> <br /> command: </p> <pre class="wiki">g++ -std=gnu++0x test.cxx -o test </pre><p> <br /> a part of error messages (full text was in the attachment): </p> <pre class="wiki">... /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp:555:1: error: specialization of 'boost::mpl::aux::template_arity&lt;boost::mpl::lambda&lt;mpl_::na, mpl_::na&gt; &gt;' after instantiation /usr/include/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp:555:1: error: redefinition of 'struct boost::mpl::aux::template_arity&lt;boost::mpl::lambda&lt;mpl_::na, mpl_::na&gt; &gt;' /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:92:1: error: previous definition of 'struct boost::mpl::aux::template_arity&lt;boost::mpl::lambda&lt;mpl_::na, mpl_::na&gt; &gt;' ... /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp:67:1: error: specialization of 'boost::mpl::aux::template_arity&lt;boost::mpl::or_&lt;&gt; &gt;' after instantiation /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp:67:1: error: redefinition of 'struct boost::mpl::aux::template_arity&lt;boost::mpl::or_&lt;&gt; &gt;' /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:92:1: error: previous definition of 'struct boost::mpl::aux::template_arity&lt;boost::mpl::or_&lt;&gt; &gt;' ... /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp:67:1: error: specialization of 'boost::mpl::aux::template_arity&lt;boost::mpl::and_&lt;&gt; &gt;' after instantiation /usr/include/boost/mpl/aux_/preprocessed/gcc/and.hpp:67:1: error: redefinition of 'struct boost::mpl::aux::template_arity&lt;boost::mpl::and_&lt;&gt; &gt;' /usr/include/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp:92:1: error: previous definition of 'struct boost::mpl::aux::template_arity&lt;boost::mpl::and_&lt;&gt; &gt;' ... </pre><p> Perhaps it's a problem of boost.mpl? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3864 Trac 1.4.3 Linghua Tseng <uranus@…> Tue, 26 Jan 2010 17:07:13 GMT attachment set https://svn.boost.org/trac10/ticket/3864 https://svn.boost.org/trac10/ticket/3864 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">erorr.txt</span> </li> </ul> <p> full text of error messages </p> Ticket rwebb <richard.webb@…> Tue, 26 Jan 2010 18:02:27 GMT <link>https://svn.boost.org/trac10/ticket/3864#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3864#comment:1</guid> <description> <p> My Mingw 4.5 tests have the same error. e.g. </p> <p> <a class="ext-link" href="http://tinyurl.com/y8uhc2r"><span class="icon">​</span>http://tinyurl.com/y8uhc2r</a> </p> <p> however, the same error occurs in loads of Boost libs and only started happening last week so i'm not sure if it's a Boost bug of a GCC regression. </p> <p> In either case, i think it's more of an MPL problem than a multi_index problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joaquín M López Muñoz</dc:creator> <pubDate>Tue, 26 Jan 2010 20:29:30 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/3864#comment:2 https://svn.boost.org/trac10/ticket/3864#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joaquín M López Muñoz</span> to <span class="trac-author">Aleksey Gurtovoy</span> </li> <li><strong>component</strong> <span class="trac-field-old">multi_index</span> → <span class="trac-field-new">mpl</span> </li> </ul> <p> The problem is affecting MPL, see for instance <a class="ext-link" href="http://tinyurl.com/ybpm9m7"><span class="icon">​</span>http://tinyurl.com/ybpm9m7</a> , so I'm transferring the ticket to that lib. </p> Ticket rwebb <richard.webb@…> Sat, 24 Apr 2010 15:06:44 GMT <link>https://svn.boost.org/trac10/ticket/3864#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3864#comment:3</guid> <description> <p> This seems to be fixed on Trunk now (all the multi_index tests are passing at any rate). </p> </description> <category>Ticket</category> </item> <item> <author>Linghua Tseng <uranus@…></author> <pubDate>Sat, 24 Apr 2010 21:16:18 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3864#comment:4 https://svn.boost.org/trac10/ticket/3864#comment:4 <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">fixed</span> </li> </ul> Ticket