http://d.puremagic.com/issues/show_bug.cgi?id=10637
Summary: minimallyInitializedArray: postblit on non-initialized... Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: monarchdo...@gmail.com --- Comment #0 from monarchdo...@gmail.com 2013-07-14 02:44:54 PDT --- ...which can trigger faults in destructor. No construction should occur at all in minimallyInitializedArray anyways. //---- static struct S { static struct I{int i; alias i this;} int* p; this() @disable; this(int i) { p = &(new I(i)).i; } this(this) { p = &(new I(*p)).i; //HERE } ~this() { assert(p != null); //THERE } } auto a = minimallyInitializedArray!(S[])(1); //---- The above should work. It currently cores at HERE. Skipping HERE makes it assert at THERE. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------