[Boost-bugs] [Boost C++ Libraries] #7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header

Subject: [Boost-bugs] [Boost C++ Libraries] #7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-05 17:58:37


#7473: clang defines __GNUC__ and confuses the libstdcpp3.hpp configuration header
-------------------------------------------------+--------------------------
 Reporter: philipp.moeller@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
-------------------------------------------------+--------------------------
 clang defines (at least on the current trunk) __GNUC__, __GNUC_MINOR__,
 and __GNUC_PATCHLEVEL__ to 4, 2, and 1 respectively. When used with
 -std=c++11 __GXX_EXPERIMENTAL_CXX0X__ will be defined as well. When using
 libstdcpp in combination with clang the boost configuration header
 libstdcpp3.hpp will use those broken version to detect library headers and
 features. Given the relatively low version number, most headers wont be
 available, which is counter-intuitive and can break in subtle ways.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7473>
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