Unsupported on parameters in functions, bug1624.

This commit is contained in:
Wilson Snyder 2019-12-06 18:50:41 -05:00
parent aee3a32354
commit 1a8b192e40
1 changed files with 5 additions and 0 deletions

View File

@ -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());