mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Fix handling of static keyword in methods (#4649)
This commit is contained in:
+1
-1
@@ -1693,7 +1693,7 @@ V3TaskConnects V3Task::taskConnects(AstNodeFTaskRef* nodep, AstNode* taskStmtsp,
|
||||
newvaluep = new AstConst{nodep->fileline(), AstConst::Unsized32{}, 0};
|
||||
} else if (AstFuncRef* const funcRefp = VN_CAST(portp->valuep(), FuncRef)) {
|
||||
const AstNodeFTask* const funcp = funcRefp->taskp();
|
||||
if (funcp->classMethod() && funcp->lifetime().isStatic()) newvaluep = funcRefp;
|
||||
if (funcp->classMethod() && funcp->isStatic()) newvaluep = funcRefp;
|
||||
} else if (AstConst* const constp = VN_CAST(portp->valuep(), Const)) {
|
||||
newvaluep = constp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user