Fix unsupported if virtual interface warning (#6558) (#6861)

This commit is contained in:
Krzysztof Bieganski
2025-12-23 10:12:34 -05:00
committed by GitHub
parent 742c0b134c
commit a2fcd37c08
9 changed files with 68 additions and 17 deletions
+2 -2
View File
@@ -156,8 +156,8 @@ public:
UINFO(6, "New vertex " << vscp);
vVtxp = new GateVarVertex{this, vscp};
vscp->user1p(vVtxp);
if (vscp->varp()->sensIfacep()) {
// Can be used in a class method, which cannot be tracked statically
if (vscp->varp()->sensIfacep() || vscp->varp()->isVirtIface()) {
// Can be read/written to via the referenced actual interface
vVtxp->clearReducibleAndDedupable("VirtIface");
vVtxp->setConsumed("VirtIface");
}