Boost C++ Libraries: Ticket #11874: Compilation error with GCC4.6 in C++11 mode https://svn.boost.org/trac10/ticket/11874 <p> <code>g++-4.6 -std=c++11</code> causes compilation error: </p> <pre class="wiki">../../../boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;’: ../../../boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here ../../../boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;’ has no member named ‘value_’ </pre><p> <code>BOOST_NOEXCEPT_IF(boost::is_nothrow_move_constructible&lt;value_type&gt;::value)</code> may help. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11874 Trac 1.4.3 Antony Polukhin Sun, 27 Dec 2015 19:15:46 GMT description changed https://svn.boost.org/trac10/ticket/11874#comment:1 https://svn.boost.org/trac10/ticket/11874#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/11874?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket viboes Sun, 03 Jan 2016 16:46:38 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11874#comment:2 https://svn.boost.org/trac10/ticket/11874#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Emil Dotchevski</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">exception</span> </li> </ul> Ticket kratz00@… Sun, 18 Sep 2016 17:44:41 GMT <link>https://svn.boost.org/trac10/ticket/11874#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:3</guid> <description> <p> I was just testing 1.62.0 beta 2 and ran into this issue. </p> <p> Used compiler: g++ (<a class="missing wiki">Ubuntu/Linaro</a>? 4.6.3-1ubuntu5) 4.6.3 </p> <p> Boost build commands: </p> <pre class="wiki">./bootstrap.sh --with-libraries=filesystem,exception,program_options,test,signals --prefix=/usr ./b2 link=shared runtime-link=shared optimization=speed variant=release cxxflags="-std=c++0x" install </pre><p> With the same settings etc. I can successfully compile and run my code with Boost 1.59.0. </p> <p> Let me know if you need more information to reproduce and fix this error. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Mon, 26 Sep 2016 19:57:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:4</guid> <description> <p> Can I have an updated error log? </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Mon, 26 Sep 2016 20:04:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:5</guid> <description> <p> The log is exactly the same or do you mean something else? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Mon, 26 Sep 2016 20:20:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:6</guid> <description> <p> The problem is that the line numbers have changed and there are two similar lines, currently 60 and 67. The original report refers to value rather than value_, which probably means the error is at what is now line 60, though there may also be an error at line 67. </p> <p> Maybe you can try the fix suggested in the original report? </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Mon, 26 Sep 2016 20:47:42 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:7</guid> <description> <p> Here is the compile error I get with 1.62.0 beta 2 </p> <pre class="wiki">/home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of 'boost::error_info&lt;boost::errinfo_errno_, int&gt;': /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/errinfo_errno.hpp:36:16: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;boost::errinfo_errno_, int&gt;' has no member named 'value_' /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of 'boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;': /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;' has no member named 'value_' /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of 'boost::error_info&lt;YAPL::yerror_info_string, std::basic_string&lt;char&gt; &gt;': /home/buildhost/delete_me_kratz00/yapl/yapl_linux.cpp:92:91: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;YAPL::yerror_info_string, std::basic_string&lt;char&gt; &gt;' has no member named 'value_' </pre><p> Regarding the suggested fix, I am not sure what to do with it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Tue, 27 Sep 2016 01:47:50 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:8</guid> <description> <p> Can you tell me what Exception headers are included in what order in yapl_linux.cpp? </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Tue, 27 Sep 2016 06:13:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:9</guid> <description> <p> Sure, here is the full trace: </p> <pre class="wiki">[ 8%] Building CXX object yapl/CMakeFiles/yapl.dir/yapl_linux.cpp.o In file included from /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/diagnostic_information.hpp:17:0, from /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/all.hpp:15, from /home/buildhost/delete_me_kratz00/yapl/yapl.h:7, from /home/buildhost/delete_me_kratz00/yapl/yapl_linux.h:5, from /home/buildhost/delete_me_kratz00/yapl/yapl_linux.cpp:1: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;boost::errinfo_errno_, int&gt;’: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/errinfo_errno.hpp:36:16: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;boost::errinfo_errno_, int&gt;’ has no member named ‘value_’ /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;’: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;’ has no member named ‘value_’ /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;YAPL::yerror_info_string, std::basic_string&lt;char&gt; &gt;’: /home/buildhost/delete_me_kratz00/yapl/yapl_linux.cpp:92:91: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;YAPL::yerror_info_string, std::basic_string&lt;char&gt; &gt;’ has no member named ‘value_’ make[2]: *** [yapl/CMakeFiles/yapl.dir/yapl_linux.cpp.o] Error 1 make[1]: *** [yapl/CMakeFiles/yapl.dir/all] Error 2 make: *** [all] Error 2 </pre> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Wed, 28 Sep 2016 17:13:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:10</guid> <description> <p> I did not expect it to work, but I just tested boost 1.62 anyway. No suprise, the error still exists and the trace looks the same: </p> <pre class="wiki">[ 16%] Building CXX object yapl/CMakeFiles/yapl.dir/yapl_linux.cpp.o In file included from /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/diagnostic_information.hpp:17:0, from /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/all.hpp:15, from /home/buildhost/delete_me_kratz00/yapl/yapl.h:7, from /home/buildhost/delete_me_kratz00/yapl/yapl_linux.h:5, from /home/buildhost/delete_me_kratz00/yapl/yapl_linux.cpp:1: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;boost::errinfo_errno_, int&gt;’: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/errinfo_errno.hpp:36:16: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;boost::errinfo_errno_, int&gt;’ has no member named ‘value_’ /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;’: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;’ has no member named ‘value_’ /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;YAPL::yerror_info_string, std::basic_string&lt;char&gt; &gt;’: /home/buildhost/delete_me_kratz00/yapl/yapl_linux.cpp:92:91: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;YAPL::yerror_info_string, std::basic_string&lt;char&gt; &gt;’ has no member named ‘value_’ make[2]: *** [yapl/CMakeFiles/yapl.dir/yapl_linux.cpp.o] Error 1 make[1]: *** [yapl/CMakeFiles/yapl.dir/all] Error 2 make: *** [all] Error 2 </pre> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Mon, 31 Oct 2016 17:09:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:11</guid> <description> <p> Any news on this issue? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Tue, 01 Nov 2016 01:31:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:12</guid> <description> <p> I just looked at it again, I can't quite make sense of it. The definition of the error_info template does have a member named 'value_'. That template will be defined if you include info.hpp, but it is declared and left incomplete if you only include error_info.hpp. Is it possible that the error you're getting is because in this context info.hpp hasn't been included? </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Tue, 01 Nov 2016 10:22:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:13</guid> <description> <p> Thanks Emil for looking into this. </p> <p> This is test code (test.cpp), which reproduces the error: </p> <pre class="wiki">#include &lt;string&gt; #include &lt;boost/exception/error_info.hpp&gt; #include &lt;boost/exception/exception.hpp&gt; #include &lt;boost/exception/info.hpp&gt; struct MyException: virtual boost::exception {}; typedef boost::error_info&lt;struct error_info_string, std::string&gt; errorInfoString; int main(void) { throw MyException() &lt;&lt; errorInfoString("doh"); return 0; } </pre><p> g++ -std=c++0x -I/home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include test.cpp </p> <pre class="wiki">In file included from test.cpp:4:0: /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;error_info_string, std::basic_string&lt;char&gt; &gt;’: test.cpp:10:49: instantiated from here /home/buildhost/delete_me_kratz00/yapl/test/3rd-party-libraries/library-boost/i386-linux-gnu/include/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;error_info_string, std::basic_string&lt;char&gt; &gt;’ has no member named ‘value_’ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Sat, 05 Nov 2016 00:25:23 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:14</guid> <description> <p> Can you please try with latest develop branch? There was a bug where some types were defined as struct in one place and as class in another, and that's fixed now. With latest develop, I get no error with gcc 4.8.5. </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Sat, 05 Nov 2016 16:54:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:15 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:15</guid> <description> <p> Hi Emil </p> <p> I've tested the develop branch: the result stays the same :( </p> <p> Do you by any chance have access to an Ubuntu 12.04 system? As such a system has the compiler in question. </p> <ul><li><a class="ext-link" href="http://releases.ubuntu.com/12.04/"><span class="icon">​</span>http://releases.ubuntu.com/12.04/</a> </li><li><a class="ext-link" href="https://sourceforge.net/projects/virtualboximage/files/Ubuntu%20Linux/12.04/"><span class="icon">​</span>https://sourceforge.net/projects/virtualboximage/files/Ubuntu%20Linux/12.04/</a> </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>gr</dc:creator> <pubDate>Tue, 08 Nov 2016 12:29:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:16 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:16</guid> <description> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;iostream&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;boost/algorithm/hex.hpp&gt;</span><span class="cp"></span> <span class="kt">int</span> <span class="nf">main</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> <span class="p">{</span> <span class="n">std</span><span class="o">::</span><span class="n">cout</span> <span class="o">&lt;&lt;</span> <span class="n">boost</span><span class="o">::</span><span class="n">algorithm</span><span class="o">::</span><span class="n">hex</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">string</span><span class="p">(</span><span class="s">&quot;hi&quot;</span><span class="p">))</span> <span class="o">&lt;&lt;</span> <span class="s">&quot;</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">;</span> <span class="k">return</span> <span class="mi">0</span><span class="p">;</span> <span class="p">}</span> </pre></div></div><div class="wiki-code"><div class="code"><pre>/deps/boost_1_62_0/boost/exception/info.hpp: In instantiation of ‘boost::error_info&lt;boost::algorithm::bad_char_, char&gt;’: /deps/boost_1_62_0/boost/algorithm/hex.hpp:75:14: instantiated from here /deps/boost_1_62_0/boost/exception/info.hpp:66:5: error: ‘class boost::error_info&lt;boost::algorithm::bad_char_, char&gt;’ has no member named ‘value_’ </pre></div></div><div class="wiki-code"><div class="code"><pre><span class="c1"># g++ -v 2&gt;&amp;1 | grep version</span> gcc version <span class="m">4</span>.6.3 <span class="o">(</span>GCC<span class="o">)</span> </pre></div></div> </description> <category>Ticket</category> </item> <item> <dc:creator>gr</dc:creator> <pubDate>Tue, 08 Nov 2016 13:40:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:17 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:17</guid> <description> <p> boost/exception/exception.hpp contains specialization for error_info with member v_ instead value_ </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Mon, 02 Jan 2017 17:53:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:18 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:18</guid> <description> <p> I just gave boost 1.63 a spin, as expected, the error is still there. The error is exactly the same as before. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Tue, 03 Jan 2017 08:13:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:19 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:19</guid> <description> <p> Can you confirm that the error_info_basic_test.cpp I added is equivalent to the one that issues the error for you? It succeeds for me under gcc-4.6.3, see <a class="ext-link" href="https://travis-ci.org/boostorg/exception/jobs/188456592"><span class="icon">​</span>https://travis-ci.org/boostorg/exception/jobs/188456592</a> </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Tue, 03 Jan 2017 09:07:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:20 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:20</guid> <description> <p> With error_info_basic_test.cpp I get the same error, as with my test code. I think what you are missing in your travis build is the compiler flag ("-std=c++0x") and that is the reason it succeeds. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Wed, 04 Jan 2017 01:03:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11874#comment:21 https://svn.boost.org/trac10/ticket/11874#comment:21 <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> Added workaround for g++4.6 </p> Ticket anonymous Thu, 16 Feb 2017 17:40:23 GMT <link>https://svn.boost.org/trac10/ticket/11874#comment:22 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:22</guid> <description> <p> This isn't fixed. Boost 1.6.3, gcc 4.6.3 with flag -std=gnu++0x on Ubuntu 12.04.5. Same problem as above. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Tue, 21 Feb 2017 03:13:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:23 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:23</guid> <description> <p> Please see <a class="ext-link" href="https://travis-ci.org/boostorg/exception/jobs/203665051"><span class="icon">​</span>https://travis-ci.org/boostorg/exception/jobs/203665051</a>, notice CXXSTD=c++0x and the output of g++ --version: </p> <p> g++ (<a class="missing wiki">Ubuntu/Linaro</a> 4.6.3-1ubuntu5) 4.6.3 </p> <p> Am I missing something? </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Mon, 27 Mar 2017 19:22:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:24 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:24</guid> <description> <p> Hi Emil </p> <p> I was just testing version 1.64.0 beta 1 and I could still reproduce this bug. Did the fix not make it in the beta? </p> </description> <category>Ticket</category> </item> <item> <author>guenterbe@…</author> <pubDate>Wed, 05 Jul 2017 14:42:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:25 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:25</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11874#comment:23" title="Comment 23">Emil Dotchevski</a>: </p> <blockquote class="citation"> <p> Please see <a class="ext-link" href="https://travis-ci.org/boostorg/exception/jobs/203665051"><span class="icon">​</span>https://travis-ci.org/boostorg/exception/jobs/203665051</a>, notice CXXSTD=c++0x and the output of g++ --version: </p> <p> g++ (<a class="missing wiki">Ubuntu/Linaro</a> 4.6.3-1ubuntu5) 4.6.3 </p> <p> Am I missing something? </p> </blockquote> <p> Yes. Building the boost libs as you did is no problem. </p> <p> The easiest way to reproduce the problem (gcc-4.6.4, c++0x mode, boost 1.64): </p> <pre class="wiki">#include &lt;boost/thread.hpp&gt; int main() { } </pre><p> Compiling results in: </p> <p> /opt/wandbox/boost-1.64.0/gcc-4.6.4/include/boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;' has no member named 'value_' </p> </description> <category>Ticket</category> </item> <item> <author>guenterbe@…</author> <pubDate>Wed, 05 Jul 2017 14:48:41 GMT</pubDate> <title>status, version changed; resolution deleted https://svn.boost.org/trac10/ticket/11874#comment:26 https://svn.boost.org/trac10/ticket/11874#comment:26 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.60.0</span> → <span class="trac-field-new">Boost 1.64.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Compiling </p> <pre class="wiki">#include &lt;boost/thread.hpp&gt; </pre><p> will fail with gcc-4.6.4, c++0x and boost-1.64: </p> <p> boost-1.64.0/gcc-4.6.4/include/boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;' has no member named 'value_' </p> <p> (It used to work with boost 1.57, other versions not tested) </p> Ticket Emil Dotchevski Thu, 06 Jul 2017 00:23:24 GMT <link>https://svn.boost.org/trac10/ticket/11874#comment:27 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:27</guid> <description> <p> Can you try with the develop branch? </p> </description> <category>Ticket</category> </item> <item> <author>Richard Hazlewood <boost@…></author> <pubDate>Wed, 12 Jul 2017 09:10:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:28 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:28</guid> <description> <p> Had same issue, but can confirm it does compile on the <em>develop</em> branch - not surprising because the code (<em>error_info_impl.hpp</em>) is guarded with: </p> <pre class="wiki">#if (__GNUC__*100+__GNUC_MINOR__!=406) //workaround for g++ bug </pre><p> We found that boost::thread fails to compile with the 1.64.0 release.<br /> Compiler call (with -d2):<br /> (Our <em>user-config.jam</em> points to g++4.6.4 with <em>-std=c++0x</em>). </p> <pre class="wiki">./b2 --user-config=./user-config.jam toolset=gcc-std0x link=static -q -d2 --with-thread </pre><pre class="wiki">gcc.compile.c++ bin.v2/libs/thread/build/gcc-std0x/release/link-static/threading-multi/pthread/thread.o "g++" -ftemplate-depth-128 -std=c++0x -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -m64 -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-std0x/release/link-static/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp" In file included from ./boost/config.hpp:61:0, from ./boost/thread/detail/config.hpp:11, from libs/thread/src/pthread/thread.cpp:9: ./boost/exception/info.hpp:67:42: error: declaration of ‘boost::error_info&lt;Tag, T&gt;::error_info(boost::error_info&lt;Tag, T&gt;&amp;&amp;) noexcept (noexcept ((boost::error_info&lt;Tag, T&gt;::value_type)(std::move(boost::error_info&lt;Tag, T&gt;::x.value_))))’ has a different exception specifier error_info( error_info&lt;Tag,T&gt; &amp;&amp; x ) BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(value_type(std::move(error_info&lt;Tag,T&gt;::x.value_)))): ^ In file included from ./boost/exception/info.hpp:17:0, from ./boost/exception/detail/exception_ptr.hpp:20, from ./boost/exception_ptr.hpp:9, from ./boost/thread/exceptional_ptr.hpp:10, from ./boost/thread/future.hpp:25, from libs/thread/src/pthread/thread.cpp:19: ./boost/exception/detail/error_info_impl.hpp:54:9: error: from previous declaration ‘boost::error_info&lt;Tag, T&gt;::error_info(boost::error_info&lt;Tag, T&gt;&amp;&amp;) noexcept (noexcept ((boost::error_info&lt;Tag, T&gt;::value_type)(std::move(x.value_))))’ error_info( error_info&lt;Tag,T&gt; &amp;&amp; x ) BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(value_type(std::move(x.value_)))); ^ </pre> </description> <category>Ticket</category> </item> <item> <author>Richard Hazlewood <boost@…></author> <pubDate>Wed, 12 Jul 2017 09:31:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:29 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:29</guid> <description> <p> Gah...this time I'll copy-paste the genuine error, and not my test code: </p> <pre class="wiki">gcc.compile.c++ bin.v2/libs/context/build/gcc-std0x/release/link-static/threading-multi/posix/stack_traits.o "g++" -ftemplate-depth-128 -std=c++0x -O3 -finline-functions -Wno-inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_CONTEXT_SOURCE -DBOOST_DISABLE_ASSERTS -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/context/build/gcc-std0x/release/link-static/threading-multi/posix/stack_traits.o" "libs/context/src/posix/stack_traits.cpp" In file included from ./boost/exception/detail/exception_ptr.hpp:20:0, from ./boost/exception_ptr.hpp:9, from ./boost/thread/exceptional_ptr.hpp:10, from ./boost/thread/future.hpp:25, from ./boost/thread.hpp:24, from libs/context/src/posix/stack_traits.cpp:24: ./boost/exception/info.hpp: In instantiation of 'boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;': ./boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here ./boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;' has no member named 'value_' ...failed gcc.compile.c++ bin.v2/libs/context/build/gcc-std0x/release/link-static/threading-multi/posix/stack_traits.o... gcc.compile.c++ bin.v2/libs/thread/build/gcc-std0x/release/link-static/threading-multi/pthread/thread.o "g++" -ftemplate-depth-128 -std=c++0x -O3 -finline-functions -Wno-inline -Wall -pedantic -pthread -m64 -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-std0x/release/link-static/threading-multi/pthread/thread.o" "libs/thread/src/pthread/thread.cpp" In file included from ./boost/exception/detail/exception_ptr.hpp:20:0, from ./boost/exception_ptr.hpp:9, from ./boost/thread/exceptional_ptr.hpp:10, from ./boost/thread/future.hpp:25, from libs/thread/src/pthread/thread.cpp:19: ./boost/exception/info.hpp: In instantiation of 'boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;': ./boost/exception/detail/exception_ptr.hpp:95:32: instantiated from here ./boost/exception/info.hpp:66:5: error: 'class boost::error_info&lt;boost::tag_original_exception_type, const std::type_info*&gt;' has no member named 'value_' </pre> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Sun, 16 Jul 2017 13:06:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:30 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:30</guid> <description> <p> Looks like a fix for this ticket has made it into the Boost 1.65.0 beta 1 release, at least my code works with this version. </p> <p> Thanks. </p> </description> <category>Ticket</category> </item> <item> <author>kratz00@…</author> <pubDate>Wed, 23 Aug 2017 16:05:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11874#comment:31 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11874#comment:31</guid> <description> <p> Like the beta, the final 1.65.0 release fixes the reported problem for me. I think this ticket can be closed now. </p> </description> <category>Ticket</category> </item> </channel> </rss>