mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Add class name in the error msg about calling 'new' on virtual class (#4739)
This commit is contained in:
+3
-2
@@ -3840,8 +3840,9 @@ class WidthVisitor final : public VNVisitor {
|
||||
classp->v3fatalSrc("Can't find class's new");
|
||||
}
|
||||
if (classp->isVirtual() || classp->isInterfaceClass()) {
|
||||
nodep->v3error(
|
||||
"Illegal to call 'new' using an abstract virtual class (IEEE 1800-2017 8.21)");
|
||||
nodep->v3error("Illegal to call 'new' using an abstract virtual class "
|
||||
+ AstNode::prettyNameQ(classp->origName())
|
||||
+ " (IEEE 1800-2017 8.21)");
|
||||
}
|
||||
} else { // super.new case
|
||||
// in this case class and taskp() should be properly linked in V3LinkDot.cpp during
|
||||
|
||||
Reference in New Issue
Block a user