Fix marking inherited virtual functions

This commit is contained in:
Wilson Snyder
2026-09-12 08:32:53 -04:00
parent 005b33faa1
commit 012b647833
4 changed files with 6 additions and 6 deletions
-4
View File
@@ -1753,10 +1753,6 @@ class TaskVisitor final : public VNVisitor {
<< nodep->prettyNameQ());
}
if (nodep->isStatic() && nodep->isVirtual()) {
nodep->v3error("Static methods cannot be virtual");
}
const bool noInline = m_statep->ftaskNoInline(nodep);
const bool needsNonInlineCFunc = m_statep->ftaskNeedsNonInlineCFunc(nodep);
// Warn if not inlining an impure ftask (unless method, recursive,