Fix class new with math.
This commit is contained in:
parent
e14319b401
commit
05f3fd7c6e
|
|
@ -3113,7 +3113,6 @@ private:
|
|||
"Illegal to call 'new' using an abstract virtual class (IEEE 1800-2017 8.21)");
|
||||
}
|
||||
userIterate(nodep->taskp(), nullptr);
|
||||
userIterateChildren(nodep, nullptr);
|
||||
processFTaskRefArgs(nodep);
|
||||
}
|
||||
virtual void visit(AstNewCopy* nodep) override {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ module t (/*AUTOARG*/);
|
|||
c1 = new;
|
||||
if (c1.imembera != 5) $stop;
|
||||
|
||||
c2 = new(2);
|
||||
c2 = new(3 - 1);
|
||||
if (c2.imembera != 3) $stop;
|
||||
if (c2.geta() != 3) $stop;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue