From 4068c172f4ba4f3cdadb5c31ce762e1454e0e86d Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 7 Jun 2015 08:48:33 +0100 Subject: [PATCH] Fix overzealous detection of duplicate net/variable declarations. As reported by Larry Doolittle on iverilog-devel. --- pform.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pform.cc b/pform.cc index 61965ef70..79d295c74 100644 --- a/pform.cc +++ b/pform.cc @@ -2425,7 +2425,8 @@ static PWire* pform_get_or_make_wire(const vlltype&li, perm_string name, // If the wire already exists but isn't yet fully defined, // carry on adding details. - if (cur && cur->get_data_type() == IVL_VT_NO_TYPE) { + if (cur && (cur->get_data_type() == IVL_VT_NO_TYPE || + cur->get_wire_type() == NetNet::IMPLICIT) ) { // If this is not implicit ("implicit" meaning we don't // know what the type is yet) then set the type now. if (type != NetNet::IMPLICIT) {