From 847910d9864bbb75b7b6930b2c51bb8f5d705d5a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 20 Oct 2019 10:03:37 +0200 Subject: [PATCH] type needs to be part of hash for GroupId --- ecp5/archdefs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } };