mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix param-dependent class typedef linking (#6171)
This commit is contained in:
@@ -4471,6 +4471,12 @@ class LinkDotResolveVisitor final : public VNVisitor {
|
||||
nodep->classOrPackagep(cpackagerefp->classOrPackageSkipp());
|
||||
if (!VN_IS(nodep->classOrPackagep(), Class)
|
||||
&& !VN_IS(nodep->classOrPackagep(), Package)) {
|
||||
if (m_statep->forPrimary()) {
|
||||
// It may be a type that comes from parameter class that is not
|
||||
// instantioned yet
|
||||
iterate(cpackagep);
|
||||
return;
|
||||
}
|
||||
// Likely impossible, as error thrown earlier
|
||||
cpackagerefp->v3error( // LCOV_EXCL_LINE
|
||||
"'::' expected to reference a class/package but referenced '"
|
||||
|
||||
Reference in New Issue
Block a user