mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Clarify extern error message
This commit is contained in:
+4
-2
@@ -3717,7 +3717,8 @@ class LinkDotResolveVisitor final : public VNVisitor {
|
||||
}
|
||||
if (nodep->isExternProto()) {
|
||||
if (!m_curSymp->findIdFallback(nodep->name()) && nodep->isExternExplicit()) {
|
||||
nodep->v3error("Definition not found for extern " + nodep->prettyNameQ());
|
||||
nodep->v3error("Definition not found for extern prototype "
|
||||
+ nodep->prettyNameQ());
|
||||
}
|
||||
}
|
||||
VL_RESTORER(m_curSymp);
|
||||
@@ -4286,7 +4287,8 @@ class LinkDotResolveVisitor final : public VNVisitor {
|
||||
}
|
||||
if (nodep->isExternProto()) {
|
||||
if (!m_curSymp->findIdFallback(nodep->name())) {
|
||||
nodep->v3error("Definition not found for extern " + nodep->prettyNameQ());
|
||||
nodep->v3error("Definition not found for extern prototype "
|
||||
+ nodep->prettyNameQ());
|
||||
}
|
||||
}
|
||||
VL_RESTORER(m_curSymp);
|
||||
|
||||
Reference in New Issue
Block a user