Fix not reporting class reference with extra parameters (#5467).

This commit is contained in:
Wilson Snyder
2024-10-04 05:38:36 -04:00
parent d06f986b51
commit fd9f5ab34e
5 changed files with 44 additions and 0 deletions
+1
View File
@@ -3943,6 +3943,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
UINFO(5, indent() << "visit " << nodep << endl);
if (AstNode* const cpackagep = nodep->classOrPackageOpp()) {
if (AstClassOrPackageRef* const cpackagerefp = VN_CAST(cpackagep, ClassOrPackageRef)) {
iterate(cpackagerefp);
const AstClass* const clsp = VN_CAST(cpackagerefp->classOrPackageNodep(), Class);
if (clsp && clsp->isParameterized()) {
// Unable to link before the instantiation of parameter classes.