diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h index 67c016cc..d155d672 100644 --- a/ecp5/archdefs.h +++ b/ecp5/archdefs.h @@ -224,7 +224,9 @@ template <> struct hash { std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept { - std::size_t seed = std::hash()(group.location); + std::size_t seed = 0; + boost::hash_combine(seed, hash()(group.type)); + boost::hash_combine(seed, hash()(group.location)); return seed; } };