Fix local:: false error in randomize() with on parameterized class (#6680) (#7293)`

This commit is contained in:
Yilou Wang
2026-03-20 10:25:46 -04:00
committed by GitHub
parent a8bccab8e6
commit b71abb0032
3 changed files with 83 additions and 1 deletions
+1 -1
View File
@@ -4663,7 +4663,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
}
if (nodep->name() == "local::") {
if (!m_randSymp) {
if (!m_randSymp && !m_randMethodCallp) {
nodep->v3error("Illegal 'local::' outside 'randomize() with'"
" (IEEE 1800-2023 18.7.1)");
m_ds.m_dotErr = true;