mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix calling new with arguments in same class (#3166).
This commit is contained in:
+1
-1
@@ -3191,7 +3191,7 @@ private:
|
||||
}
|
||||
|
||||
virtual void visit(AstNew* nodep) override {
|
||||
if (nodep->didWidthAndSet()) return;
|
||||
if (nodep->didWidth()) return;
|
||||
AstClassRefDType* refp
|
||||
= m_vup ? VN_CAST(m_vup->dtypeNullSkipRefp(), ClassRefDType) : nullptr;
|
||||
if (!refp) { // e.g. int a = new;
|
||||
|
||||
Reference in New Issue
Block a user