[Boost-bugs] [Boost C++ Libraries] #7359: Compatibility with Intel icpc 13.0 when using -use-clang-env option on Mac OS X

Subject: [Boost-bugs] [Boost C++ Libraries] #7359: Compatibility with Intel icpc 13.0 when using -use-clang-env option on Mac OS X
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-10 16:24:22


#7359: Compatibility with Intel icpc 13.0 when using -use-clang-env option on Mac
OS X
------------------------------+---------------------------------------------
 Reporter: zhouyan@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.51.0 | Severity: Showstopper
 Keywords: |
------------------------------+---------------------------------------------
 The recently released Intel C++ Compiler has a new option -use-clang-env
 (OS X version only). This cause icpc to define the macro __clang__ and use
 Clang's headers etc. I haven't found any particular effects at the moment.
 Maybe they are planning switching to libc++ on Mac OS X as libstdc++ will
 not be distributed on OS X anymore in the near future.

 Anyway, the problem is that with this macro defined,
 select_compiler_config.hpp will select Clang instead of Intel icpc as
 compilers. Further, even icpc has this macro, it does not have all the
 clang's __has_features(...) macros defined, and thus this wrong selection
 cause compilation error.

 The fix is very simple, simply test __INTEL_COMPILER before __clang__. The
 fixed header is attached in this report. I am not aware if there are any
 other compatibility problem with this new compiler yet. However, this one
 need immediate fix.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7359>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC