Skip to content

Commit

Permalink
Don't throw error regarding local:: if class isn't resolved yet
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Dec 16, 2024
1 parent c7355b4 commit 27300ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/V3LinkDot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,9 @@ class LinkDotResolveVisitor final : public VNVisitor {
}

if (nodep->name() == "local::") {
if (!m_randSymp) {
if (!m_randSymp && !m_ds.m_unresolvedClass) {
// m_randSymp is not set in the 1st pass of V3LinkDot
// if randomize is called on a parameterized class
nodep->v3error("Illegal 'local::' outside 'randomize() with'"
" (IEEE 1800-2023 18.7.1)");
m_ds.m_dotErr = true;
Expand Down

0 comments on commit 27300ed

Please sign in to comment.