mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix handling of static keyword in methods (#4649)
This commit is contained in:
+2
-1
@@ -3185,7 +3185,7 @@ private:
|
||||
AstNodeFTask* const taskp
|
||||
= foundp ? VN_CAST(foundp->nodep(), NodeFTask) : nullptr; // Maybe nullptr
|
||||
if (taskp) {
|
||||
if (staticAccess && !taskp->lifetime().isStatic()) {
|
||||
if (staticAccess && !taskp->isStatic()) {
|
||||
// TODO bug4077
|
||||
// nodep->v3error("Static access to non-static task/function "
|
||||
// << taskp->prettyNameQ() << endl);
|
||||
@@ -3358,6 +3358,7 @@ private:
|
||||
// External definition cannot have any specifiers, so no value will be overwritten.
|
||||
nodep->isHideLocal(funcProtop->isHideLocal());
|
||||
nodep->isHideProtected(funcProtop->isHideProtected());
|
||||
nodep->isStatic(funcProtop->isStatic());
|
||||
nodep->isVirtual(funcProtop->isVirtual());
|
||||
nodep->lifetime(funcProtop->lifetime());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user