Boost C++ Libraries: Ticket #12144: Clang 3.9 trunk DONT_USE_HAS_NEW_OPERATOR warning https://svn.boost.org/trac10/ticket/12144 <p> Clang 3.9 is reporting the following warning: </p> <pre class="wiki">boost/boost.1.58.0/boost/archive/detail/iserializer.hpp:65:7: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined] #if ! DONT_USE_HAS_NEW_OPERATOR ^ boost/boost.1.58.0/boost/archive/detail/iserializer.hpp:61:5: note: expanded from macro 'DONT_USE_HAS_NEW_OPERATOR' defined(__BORLANDC__) \ ^ </pre><p> I believe this may have been initially fixed with: <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/8120"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/8120</a> </p> <p> Changing the source to not directly #define on #defined seems to resolve this warning: </p> <pre class="wiki">#ifndef BOOST_MSVC #if BOOST_WORKAROUND(__IBMCPP__, &lt; 1210) \ || defined(__SUNPRO_CC) &amp;&amp; (__SUNPRO_CC &lt; 0x590) #define DONT_USE_HAS_NEW_OPERATOR 1 #else #define DONT_USE_HAS_NEW_OPERATOR 0 #endif #else #define DONT_USE_HAS_NEW_OPERATOR 0 #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12144 Trac 1.4.3 anonymous Thu, 21 Apr 2016 21:20:34 GMT <link>https://svn.boost.org/trac10/ticket/12144#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12144#comment:1</guid> <description> <p> jlkj </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Mon, 25 Apr 2016 04:47:06 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12144#comment:2 https://svn.boost.org/trac10/ticket/12144#comment:2 <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 drivehappy@… Fri, 10 Jun 2016 15:50:38 GMT <link>https://svn.boost.org/trac10/ticket/12144#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12144#comment:3</guid> <description> <p> I noticed this was transitioned as Fixed, however I don't see a change in either the 'develop' or 'master' branches on <a class="missing wiki">GitHub</a> - is there a different branch it was resolved in? Thanks. </p> </description> <category>Ticket</category> </item> <item> <author>drivehappy@…</author> <pubDate>Wed, 28 Sep 2016 05:14:37 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/12144#comment:4 https://svn.boost.org/trac10/ticket/12144#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Re-opening as it doesn't seem to be resolved (at least looking in github master or develop branch): <a class="ext-link" href="https://github.com/boostorg/serialization/blob/master/include/boost/archive/detail/iserializer.hpp"><span class="icon">​</span>https://github.com/boostorg/serialization/blob/master/include/boost/archive/detail/iserializer.hpp</a> </p> <p> The fixed transition doesn't have any notes on any change, so I'm working on the assumption this was incorrectly closed out. </p> Ticket davidlt Tue, 18 Apr 2017 14:06:25 GMT <link>https://svn.boost.org/trac10/ticket/12144#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12144#comment:5</guid> <description> <p> Boost 1.63.0 and Clang 4.0.0 continues to have these warnings (or errors in our configuration). </p> </description> <category>Ticket</category> </item> </channel> </rss>