Boost C++ Libraries: Ticket #7306: Regression from Changeset 80234: preprocessor undefined behaviour in type_traits https://svn.boost.org/trac10/ticket/7306 <p> process_jam_log refuses to build for the AIX runner. The build appears to be choking on undefined behaviour introduced in the subject changeset. </p> <pre class="wiki"> 306 BOOST_STATIC_CONSTANT(bool, value = 307 #ifndef BOOST_NO_RVALUE_REFERENCES 308 sizeof( _m_check(static_cast&lt;rvalue_type&gt;(_m_from)) ) == sizeof(::boost::type_traits::yes_type) 309 #else 310 sizeof( _m_check(_m_from) ) == sizeof(::boost::type_traits::yes_type) 311 #endif 312 ); </pre><p> N3290 subclause 16.3 [cpp.replace] paragraph 11 (re: invocations of a function-like macro): </p> <p> ... </p> <p> If there are sequences of preprocessing tokens within the list of arguments that would otherwise act as preprocessing directives, the behaviour is undefined. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7306 Trac 1.4.3 Michel Morin Fri, 31 Aug 2012 03:23:09 GMT <link>https://svn.boost.org/trac10/ticket/7306#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7306#comment:1</guid> <description> <p> Thanks for the report, Hubert! </p> <p> John, sorry for the bad patch. Since fixing this is trivial, I'll commit a fix. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Michel Morin</dc:creator> <pubDate>Fri, 31 Aug 2012 03:30:55 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7306#comment:2 https://svn.boost.org/trac10/ticket/7306#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80325" title="Fix preprocessor usage (and synchronize the style); fixes #7306">[80325]</a>) Fix preprocessor usage (and synchronize the style); fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7306" title="#7306: Bugs: Regression from Changeset 80234: preprocessor undefined behaviour in ... (closed: fixed)">#7306</a> </p> Ticket