Fix backward external constraint error, from recent new support.

(Thanks sv-tests!)
This commit is contained in:
Wilson Snyder
2024-12-13 16:54:14 -05:00
parent 41a038b79b
commit a23dfdc4ee
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3330,7 +3330,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
}
}
if (nodep->isExternProto()) {
if (!m_curSymp->findIdFallback(nodep->name()) && !nodep->isExternExplicit()) {
if (!m_curSymp->findIdFallback(nodep->name()) && nodep->isExternExplicit()) {
nodep->v3error("Definition not found for extern " + nodep->prettyNameQ());
}
}