This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57524] internal compiler error on dump translation unit
- From: "JamesMikeDuPont at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Jun 2013 10:38:49 +0000
- Subject: [Bug c++/57524] internal compiler error on dump translation unit
- Auto-submitted: auto-generated
- References: <bug-57524-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57524
--- Comment #2 from James Michael DuPont <JamesMikeDuPont at googlemail dot com> ---
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.