Boost C++ Libraries: Ticket #11856: pool_resource.cpp error: declaration changes meaning https://svn.boost.org/trac10/ticket/11856 <p> Hello, </p> <p> Boost Container does not compile with GCC 4.4.7. I tried both: <a class="missing wiki">RedHat</a> Enterprise Linux 6 and Debian Squeeze. The error is the following: </p> <pre class="wiki">gcc.compile.c++ _build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o libs/container/src/pool_resource.cpp:35: error: declaration of ‘typedef class boost::container::pmr::block_slist_base&lt;boost::container::pmr::block_slist_header&gt; boost::container::pmr::pool_data_t::block_slist_base’ ./boost/container/detail/block_slist.hpp:67: error: changes meaning of ‘block_slist_base’ from ‘class boost::container::pmr::block_slist_base&lt;boost::container::pmr::block_slist_header&gt;’ "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "_build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o" "libs/container/src/pool_resource.cpp" ...failed gcc.compile.c++ _build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o... </pre><p> Could you please take a look? </p> <p> Thanks, Gregor </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11856 Trac 1.4.3 gishell@… Tue, 22 Dec 2015 02:17:32 GMT <link>https://svn.boost.org/trac10/ticket/11856#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11856#comment:1</guid> <description> <p> I got same error in SL6.4 (x64, boost 1.60.0, gcc 4.4.7). </p> <p> libs/container/src/pool_resource.cpp:35: error: declaration of ?.ypedef class boost::container::pmr::block_slist_base&lt;boost::container::pmr::block_slist_header&gt; boost::container::pmr::pool_data_t::block_slist_base? ./boost/container/detail/block_slist.hpp:67: error: changes meaning of ?.lock_slist_base?.from ?.lass boost::container::pmr::block_slist_base&lt;boost::container::pmr::block_slist_header&gt;? </p> <blockquote> <p> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o" "libs/container/src/pool_resource.cpp" </p> </blockquote> <p> ...failed gcc.compile.c++ bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o... ...skipped &lt;pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi&gt;libboost_container.a(clean) for lack of &lt;pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi&gt;pool_resource.o... ...skipped &lt;pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi&gt;libboost_container.a for lack of &lt;pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi&gt;pool_resource.o... ...skipped &lt;p/home/athena/develop/vendor/boost/1_60_0/lib&gt;libboost_container.a for lack of &lt;pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi&gt;libboost_container.a... </p> <p> please check it out. thanks. </p> </description> <category>Ticket</category> </item> <item> <author>jupp0r@…</author> <pubDate>Tue, 22 Dec 2015 16:09:32 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11856 https://svn.boost.org/trac10/ticket/11856 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_11856.patch</span> </li> </ul> <p> This fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11856" title="#11856: Bugs: pool_resource.cpp error: declaration changes meaning (closed: fixed)">#11856</a> for me using Red Hat Enterprise Linux Server release 6.7 (Santiago) </p> Ticket gjasny@… Wed, 23 Dec 2015 08:21:59 GMT <link>https://svn.boost.org/trac10/ticket/11856#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11856#comment:2</guid> <description> <p> I filed a PR here: <a class="ext-link" href="https://github.com/boostorg/container/pull/34"><span class="icon">​</span>https://github.com/boostorg/container/pull/34</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Wed, 23 Dec 2015 09:24:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11856#comment:3 https://svn.boost.org/trac10/ticket/11856#comment:3 <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> <p> Thanks for the patch. Merged in: </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/12e12435430dcaff2654fdbb2e90972828ecd68c"><span class="icon">​</span>https://github.com/boostorg/container/commit/12e12435430dcaff2654fdbb2e90972828ecd68c</a> </p> Ticket