Boost C++ Libraries: Ticket #11402: Failed to compile with c++11 https://svn.boost.org/trac10/ticket/11402 <p> If I add -std=c++0x to g++ (version 4.6.2 (SUSE Linux)) </p> <p> g++ -O2 -I/home/apl/boost_devel/boost_1_58_0 -std=c++0x -lgmp -o test test.cpp </p> <p> and compile attached file, compiler failed while without c++0x flag it compiled successfully. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11402 Trac 1.4.3 andyplekhanov@… Mon, 15 Jun 2015 08:18:50 GMT attachment set https://svn.boost.org/trac10/ticket/11402 https://svn.boost.org/trac10/ticket/11402 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> Ticket John Maddock Mon, 15 Jun 2015 17:01:59 GMT <link>https://svn.boost.org/trac10/ticket/11402#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11402#comment:1</guid> <description> <p> It works for me with Boost-1.55, 1.56, and 1.57 and GCC-4.9.2, I'll try an older GCC version later. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 15 Jun 2015 17:12:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11402#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11402#comment:2</guid> <description> <p> This bug is in boost 1.58 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 15 Jun 2015 17:33:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11402#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11402#comment:3</guid> <description> <p> Your test compiles with 1.58 and GCC-4.9.2 as well. So it's looking like a compiler bug, or possibly a mis-configuration somewhere, but I'll know more when gcc-4.6 has finished building! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 15 Jun 2015 17:58:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11402#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11402#comment:4</guid> <description> <p> OK, I can reproduce with gcc-4.6.4, but the error makes no sense to me at present. If it's possible to fix this for the next release I will, but the quickest fix would be for you to use a rather less obsolete gcc version if you can. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 17 Jun 2015 18:57:01 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11402#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11402#comment:5</guid> <description> <p> Update: compiles OK with gcc-4.7.4 in C++11 mode. Or with 4.6.4 if you define BOOST_NO_CXX11_NOEXCEPT. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 18 Jun 2015 09:53:16 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11402#comment:6 https://svn.boost.org/trac10/ticket/11402#comment:6 <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> Fixed in <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/9abf33884ba8cb2f53248a7eae170efa0df399d0"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/9abf33884ba8cb2f53248a7eae170efa0df399d0</a> </p> Ticket