From 1a8b192e40f817ebcab3c95fa999a7d4213adcb8 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 6 Dec 2019 18:50:41 -0500 Subject: [PATCH] Unsupported on parameters in functions, bug1624. --- src/V3LinkDot.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index 3030dadad..a875a49de 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -983,6 +983,11 @@ class LinkDotFindVisitor : public AstNVisitor { // Var: Remember its name for later resolution UASSERT_OBJ(m_curSymp && m_modSymp, nodep, "Var not under module?"); iterateChildren(nodep); + if (m_ftaskp && nodep->isParam()) { + nodep->v3error("Unsupported: Parameters in functions."); // Big3 unsupported too + nodep->unlinkFrBack()->deleteTree(); VL_DANGLING(nodep); + return; + } if (!m_statep->forScopeCreation()) { // Find under either a task or the module's vars VSymEnt* foundp = m_curSymp->findIdFallback(nodep->name());