From ae448e5ef9b96764519f2005f1f978967017c56a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 1 Jun 2020 09:08:50 -0400 Subject: [PATCH] Fix older GCC compiler error. --- include/verilated_unordered_set_map.h | 6 ++++++ src/V3AstNodes.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/verilated_unordered_set_map.h b/include/verilated_unordered_set_map.h index 5d60cac6d..3b2f9f7a3 100644 --- a/include/verilated_unordered_set_map.h +++ b/include/verilated_unordered_set_map.h @@ -55,6 +55,12 @@ inline size_t vl_hash_bytes(const void* vbufp, size_t nbytes) { return hash; } +template <> inline size_t vl_hash::operator()(const int& k) const { return k; } + +template <> inline bool vl_equal_to::operator()(const int& a, const int& b) const { + return a == b; +} + template <> inline size_t vl_hash::operator()(const unsigned int& k) const { return k; } diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index ba94046f2..78f710b73 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -1519,8 +1519,8 @@ void AstBegin::dump(std::ostream& str) const { } void AstCoverDecl::dump(std::ostream& str) const { this->AstNode::dump(str); - if (!page().empty()) str << " page="< "; this->dataDeclNullp()->dump(str);