http://d.puremagic.com/issues/show_bug.cgi?id=6684
Summary: Wrong code for null-initializing a class with alias this. Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: timon.g...@gmx.ch --- Comment #0 from timon.g...@gmx.ch 2011-09-17 02:22:42 PDT --- class Foo{ string bar; alias bar this; } void main(){ Foo foo = null; // segmentation fault at runtime } The compiler attempts to assign to foo's 'bar' field, instead of initializing the class reference with zero. That always results in a segmentation fault. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------