Tests: Add t_param_type_bad3

This commit is contained in:
Wilson Snyder
2025-05-06 21:11:34 -04:00
parent b099d6fe63
commit bc3bf6ab5e
5 changed files with 39 additions and 4 deletions
+2 -2
View File
@@ -3341,8 +3341,8 @@ class LinkDotResolveVisitor final : public VNVisitor {
nodep->replaceWith(newp);
VL_DO_DANGLING(pushDeletep(nodep), nodep);
}
} else if (AstConstraint* const consp = VN_CAST(foundp->nodep(), Constraint)) {
AstNode* const newp = new AstConstraintRef{nodep->fileline(), nullptr, consp};
} else if (AstConstraint* const defp = VN_CAST(foundp->nodep(), Constraint)) {
AstNode* const newp = new AstConstraintRef{nodep->fileline(), nullptr, defp};
nodep->replaceWith(newp);
VL_DO_DANGLING(pushDeletep(nodep), nodep);
ok = true;