Boost C++ Libraries: Ticket #11605: Compile errors with Clang 3.7 (and earlier) https://svn.boost.org/trac10/ticket/11605 <p> The problem is complicated and most probably belongs to fusion. However I'm not very sure, and technically all tests from fusion compile, it's the test from spirit repository fails. So, I'm posting it under the spirit component. </p> <p> The spirit/repository/test/qi/keywords.cpp does not compile with recent clang@apple with default preprocessor definitions. I'm attaching the compiler log with this ticket. </p> <p> The only way I can compile it is to use BOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK preprocessor flag, unfortunately with flags triggers another branch of compile errors related to fusion's result_of helper. To fix BOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK compile errors the file boost/fusion/support/detail/result_of.hpp should be modified as follows: </p> <p> Was: </p> <table class="wiki"> <tr>#if !defined(BOOST_RESULT_OF_USE_DECLTYPE) <td> defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) </td></tr></table> <p> Should: </p> <table class="wiki"> <tr>#if 1 <td> (!defined(BOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK) \ </td></tr></table> <blockquote> <p> &amp;&amp; !defined(BOOST_RESULT_OF_USE_DECLTYPE)) \ </p> <blockquote> <table class="wiki"> <tr><td> defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) </td></tr></table> </blockquote> </blockquote> <p> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11605 Trac 1.4.3 Kohei Takahashi <flast@…> Tue, 01 Sep 2015 02:28:44 GMT <link>https://svn.boost.org/trac10/ticket/11605#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11605#comment:1</guid> <description> <p> dup <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11606" title="#11606: Bugs: Compile errors with Clang 3.7 (and earlier) (closed: fixed)">#11606</a> </p> </description> <category>Ticket</category> </item> <item> <author>Nikita Kniazev <nok.raven@…></author> <pubDate>Thu, 14 Dec 2017 18:58:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11605#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11605#comment:2</guid> <description> <p> Should have been fixed in <a class="ext-link" href="https://github.com/boostorg/spirit/pull/256"><span class="icon">​</span>https://github.com/boostorg/spirit/pull/256</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Fri, 15 Dec 2017 00:01:20 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11605#comment:3 https://svn.boost.org/trac10/ticket/11605#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> Ticket