Fix $bits on local struct with chained-interface (#7515) (#7517)

This commit is contained in:
em2machine
2026-04-30 07:12:11 -04:00
committed by GitHub
parent 4befec4463
commit d15b1fba94
6 changed files with 90 additions and 3 deletions
+12
View File
@@ -875,6 +875,18 @@ class ParamProcessor final {
}
return true;
}
} else if (!entry.cloneCellPath.empty()) {
// Clone entry has no paramTypep stored; look up the type by name.
if (AstParamTypeDType* const ptp
= V3LinkDotIfaceCapture::findParamTypeInModule(targetModp, entry.refp->name())) {
entry.refp->refDTypep(ptp);
entry.refp->dtypep(ptp);
for (AstRefDType* const xrefp : entry.extraRefps) {
xrefp->refDTypep(ptp);
xrefp->dtypep(ptp);
}
return true;
}
}
return false;
}