Boost C++ Libraries: Ticket #10662: Simple signal fails to compile using clang with -std=c++11 https://svn.boost.org/trac10/ticket/10662 <p> This test case fails to build using clang 3.0 and boost 1.55: </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/signals2/signal.hpp&gt;</span><span class="cp"></span> <span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span> <span class="n">boost</span><span class="o">::</span><span class="n">signals2</span><span class="o">::</span><span class="n">signal</span><span class="o">&lt;</span><span class="kt">void</span><span class="p">()</span><span class="o">&gt;</span> <span class="n">s</span><span class="p">;</span> <span class="n">s</span><span class="p">();</span> <span class="p">}</span> </pre></div></div><p> Error: </p> <pre class="wiki">In file included from scratch.cpp:1: In file included from /usr/include/boost/signals2/signal.hpp:38: In file included from /usr/include/boost/signals2/variadic_signal.hpp:21: /usr/include/boost/signals2/detail/variadic_slot_invoker.hpp:81:18: error: call to member function 'm_invoke' is ambiguous return m_invoke(resolver, func, indices_type(), args); ^~~~~~~~ </pre><p> This is the same test case as <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8260" title="#8260: Bugs: trivial code fails to compile with clang in c++11 mode (closed: duplicate)">#8260</a> which was marked a duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8102" title="#8102: Bugs: signals2 is trying to use std::get with boost::tuple (closed: fixed)">#8102</a> and fixed in 1.54. Note that this test case results in a different error in 1.55. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10662 Trac 1.4.3 beeblebrox42@… Wed, 15 Oct 2014 20:30:08 GMT attachment set https://svn.boost.org/trac10/ticket/10662 https://svn.boost.org/trac10/ticket/10662 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">scratch.cpp</span> </li> </ul> <p> Simple test case demonstrating issue in clang 3.0: clang++ -std=c++11 scratch.cpp </p> Ticket beeblebrox42@… Wed, 15 Oct 2014 20:30:34 GMT attachment set https://svn.boost.org/trac10/ticket/10662 https://svn.boost.org/trac10/ticket/10662 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">errors.txt</span> </li> </ul> <p> Error output </p> Ticket Frank Mori Hess Thu, 16 Oct 2014 00:59:42 GMT <link>https://svn.boost.org/trac10/ticket/10662#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10662#comment:1</guid> <description> <p> Have you tried a newer version of clang? I'm inclined to just blame this on clang 3.0 as other compilers do not have this problem even when variadic templates are being used. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 16 Oct 2014 15:47:32 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10662#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10662#comment:2</guid> <description> <p> I was able to find an upgrade for Ubuntu Precise to clang 3.3. It works. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Frank Mori Hess</dc:creator> <pubDate>Mon, 13 Apr 2015 02:59:42 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10662#comment:3 https://svn.boost.org/trac10/ticket/10662#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> This may work now on the develop branch, even with the buggy version of clang. </p> Ticket