Add IMPLICITSTATIC also on procedure variables.

This commit is contained in:
Wilson Snyder
2025-09-21 19:52:19 -04:00
parent 9e664a3921
commit a647747260
47 changed files with 1039 additions and 942 deletions
+1 -1
View File
@@ -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"