Subject: [Boost-bugs] [Boost C++ Libraries] #8651: Uneeded usage of namespace causes problems for the compiler
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-05 10:59:31
#8651: Uneeded usage of namespace causes problems for the compiler
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: ebf
Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
Version: Boost 1.53.0 | Severity: Cosmetic
Keywords: |
------------------------------+---------------------------------------------
using debian sid
Package: libboost1.53-dev
Source: boost1.53
Version: 1.53.0-5
The gcc compiler crashes using some options when compiling (dump
translation unit)
Here is a small change to work around the crash :
namespace boost {
namespace detail { namespace variant {
struct variant_hasher: public //boost::
static_visitor<std::size_t> {
template <class T>
std::size_t operator()(T const& val) const {
//using namespace boost;
hash<T> hasher;
return hasher(val);
}
};
}}
}
It is the uneeded namespace usage that causes the problem.
see the gcc Bug 57524 - internal compiler error on dump translation unit
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8651> 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:13 UTC