Subject: [Boost-bugs] [Boost C++ Libraries] #2432: spirit/home/classic/utility/impl/chset/basic_chset.hpp misses include <limits.h>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-23 08:17:33
#2432: spirit/home/classic/utility/impl/chset/basic_chset.hpp misses include
<limits.h>
-------------------------------------+--------------------------------------
Reporter: joerg.richter_at_[hidden] | Owner: djowel
Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: spirit
Version: Boost 1.36.0 | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
spirit/home/classic/utility/impl/chset/basic_chset.hpp uses the macro
CHAR_BIT without including <limits.h>
Our scenario is, that two objects use chset<char> and one object has
included <limits.h> and another one hasn't. This results in an ODR
violation for basic_chset<char>.
This happens with GCC-4.3.2.
If boost were clean enough to use '-Wundef', to warn on undefined macros,
this bug would have be found much earlier.
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2432> 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:49:59 UTC