Subject: [Boost-bugs] [Boost C++ Libraries] #6156: fenv.hpp broken on clang+glibc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-21 20:03:51
#6156: fenv.hpp broken on clang+glibc
-------------------------------------------------+--------------------------
Reporter: Marc Glisse <marc.glisse@â¦> | Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
-------------------------------------------------+--------------------------
Hello,
with clang and glibc, boost doesn't protect against multiple inclusion of
bits/fenv.h:
#include <fenv.h>
#include <boost/lexical_cast.hpp>
/localhome/glisse2/include/boost/detail/fenv.hpp:22:11: warning: '_FENV_H'
macro redefined
/usr/include/fenv.h:24:9: note: previous definition is here
/usr/include/x86_64-linux-gnu/bits/fenv.h:30:5: error: redefinition of
enumerator 'FE_INVALID'
...
Someone apparently thought it was a good idea to add some subtleties to
fenv.hpp to help people who misconfigured clang, but that is imho a bad
idea and the special case should be removed (note that clang-3.0 has a
good default configuration). If you insist on keeping it, please ensure
that _FENV_H is not defined.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6156> 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:07 UTC