mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix handling of ref types in initial values of type parameters (#4304)
This commit is contained in:
+1
-1
@@ -709,7 +709,7 @@ class ParamProcessor final : public VNDeleter {
|
||||
}
|
||||
} else if (AstParamTypeDType* const modvarp = pinp->modPTypep()) {
|
||||
AstNodeDType* const exprp = VN_CAST(pinp->exprp(), NodeDType);
|
||||
const AstNodeDType* const origp = modvarp->subDTypep();
|
||||
const AstNodeDType* const origp = modvarp->skipRefToEnump();
|
||||
if (!exprp) {
|
||||
pinp->v3error("Parameter type pin value isn't a type: Param "
|
||||
<< pinp->prettyNameQ() << " of " << nodep->prettyNameQ());
|
||||
|
||||
Reference in New Issue
Block a user