diff --git a/parse.y b/parse.y index 7faac773a..7f4ad28d0 100644 --- a/parse.y +++ b/parse.y @@ -4659,9 +4659,8 @@ port_declaration use_type = NetNet::IMPLICIT_REG; } else if (dynamic_cast ($4)) { use_type = NetNet::IMPLICIT_REG; - } else if (enum_type_t*etype = dynamic_cast ($4)) { - if(etype->base_type == IVL_VT_LOGIC) - use_type = NetNet::IMPLICIT_REG; + } else if (dynamic_cast ($4)) { + use_type = NetNet::IMPLICIT_REG; } } ptmp = pform_module_port_reference(name, @2.text, @2.first_line);