mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Add IMPLICITSTATIC also on procedure variables.
This commit is contained in:
@@ -127,7 +127,7 @@ class LinkLValueVisitor final : public VNVisitor {
|
||||
} else {
|
||||
const bool rhsHasAutomatic
|
||||
= nodep->rhsp()->exists([](const AstNodeVarRef* const refp) {
|
||||
return refp->varp() && refp->varp()->lifetime() == VLifetime::AUTOMATIC;
|
||||
return refp->varp() && refp->varp()->lifetime().isAutomatic();
|
||||
});
|
||||
if (rhsHasAutomatic) {
|
||||
nodep->rhsp()->v3error("Static variable initializer\n"
|
||||
|
||||
Reference in New Issue
Block a user