Thread overview | |||||
---|---|---|---|---|---|
|
October 23, 2006 [Issue 446] New: Anonymous class and "return without calling constructor" | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=446 Summary: Anonymous class and "return without calling constructor" Product: D Version: 0.172 Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: benoit@tionex.de class CBase { this(){ } } void func2( CBase l ){ } void main(){ if( 1 ){ func2( new class() CBase { this(){ super(); } }); } return; // line 18 } main.d(18): return without calling constructor -- |
November 08, 2006 Re: [Issue 446] New: Anonymous class and "return without calling constructor" | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-10-23: > http://d.puremagic.com/issues/show_bug.cgi?id=446 > class CBase { > this(){ > } > } > > void func2( CBase l ){ > } > > void main(){ > if( 1 ){ > func2( new class() CBase { > this(){ > super(); > } > }); > } > return; // line 18 > } > > main.d(18): return without calling constructor Added to DStress as http://dstress.kuehne.cn/run/s/super_14_A.d http://dstress.kuehne.cn/run/s/super_14_B.d Thomas |
November 25, 2006 [Issue 446] Anonymous class and "return without calling constructor" | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=446 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla@digitalmars.com 2006-11-25 03:54 ------- Fixed DMD 0.175 -- |
Copyright © 1999-2021 by the D Language Foundation