Boost C++ Libraries: Ticket #5878: Detection of C++0x features broken with latest Intel compiler https://svn.boost.org/trac10/ticket/5878 <p> prompt$ icpc -v icpc version 12.1.0 (gcc version 4.4.5 compatibility) </p> <p> Detection of C++0x features should *NOT* be base on STDC_HOSTED but on <span class="underline">GXX_EXPERIMENTAL_CXX0X</span>. </p> <p> prompt$ icpc -dM -E test.cpp | grep CXX0X #define <span class="underline">GTHREADS_CXX0X 1 </span></p> <p> prompt$ icpc -std=c++0x -dM -E test.cpp | grep CXX0X #define <span class="underline">GXX_EXPERIMENTAL_CXX0X</span> 1 #define <span class="underline">GTHREADS_CXX0X 1 </span></p> <p> prompt$ icpc -dM -E test.cpp | grep STDC_HOSTED #define <span class="underline">STDC_HOSTED</span> 1 </p> <p> prompt$ icpc -std=c++0x -dM -E test.cpp | grep STDC_HOSTED #define <span class="underline">STDC_HOSTED</span> 1 </p> <p> I classify this bug as showstopper since it prevents boost from compiling unless the user messes with boost's source code. The fix to apply is in boost/config/compiler/intel.hpp. The correct detection code should be: </p> <table class="wiki"> <tr>#if (!(defined(_WIN32) <td> defined(_WIN64)) &amp;&amp; defined(<span class="underline">GXX_EXPERIMENTAL_CPP0X</span>)) </td></tr></table> <p> # define BOOST_INTEL_STDCXX0X #endif </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5878 Trac 1.4.3 John Maddock Mon, 26 Sep 2011 11:11:56 GMT <link>https://svn.boost.org/trac10/ticket/5878#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5878#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74573" title="Tentative fox for C++0x detection in Intel 12.1 and later. Refs #5941. ...">[74573]</a>) Tentative fox for C++0x detection in Intel 12.1 and later. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5941" title="#5941: Patches: Wrong determination of support of the standard of a C++0X. (closed: fixed)">#5941</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5878" title="#5878: Bugs: Detection of C++0x features broken with latest Intel compiler (closed: fixed)">#5878</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 10 Oct 2011 11:51:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5878#comment:2 https://svn.boost.org/trac10/ticket/5878#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/74889" title="Merge Boost.Config changes from Trunk - numerous small bug fixes plus ...">[74889]</a>) Merge Boost.Config changes from Trunk - numerous small bug fixes plus a new Cray C++ config. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5607" title="#5607: Patches: BOOST_CURRENT_FUNCTION for GHS Compiler (closed: fixed)">#5607</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5941" title="#5941: Patches: Wrong determination of support of the standard of a C++0X. (closed: fixed)">#5941</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5878" title="#5878: Bugs: Detection of C++0x features broken with latest Intel compiler (closed: fixed)">#5878</a>. </p> Ticket