mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 02:23:19 +02:00
Report error on function call output tied to constant.
Fix internal error on functions called as SV tasks.
This commit is contained in:
@@ -500,6 +500,7 @@ private:
|
||||
if (!taskp) { nodep->v3error("Can't find definition of task/function: "<<nodep->prettyName()); }
|
||||
nodep->taskp(taskp);
|
||||
nodep->packagep(packageFor(taskp));
|
||||
if (taskp->castTask() && nodep->castFuncRef()) nodep->v3error("Illegal call of a task as a function: "<<nodep->prettyName());
|
||||
}
|
||||
}
|
||||
nodep->iterateChildren(*this);
|
||||
|
||||
Reference in New Issue
Block a user