mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Fix cascading errors after unsupported class dot reference in parameter value (#8551)
Signed-off-by: Martijn Wobbes <[email protected]>
This commit is contained in:
@@ -4116,6 +4116,8 @@ class WidthVisitor final : public VNVisitor {
|
||||
// ^^~~~ this is our DOT
|
||||
nodep->v3warn(E_UNSUPPORTED, "dotted expressions in parameters\n"
|
||||
<< nodep->warnMore() << "... Suggest use a typedef");
|
||||
nodep->replaceWith(new AstConst{nodep->fileline(), AstConst::BitFalseErroring{}});
|
||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||
}
|
||||
void visit(AstClassExtends* nodep) override {
|
||||
if (nodep->didWidthAndSet()) return;
|
||||
|
||||
Reference in New Issue
Block a user