digitalmars.D.bugs - [Issue 14993] New: Allocating in a destructor segfaults instead of
- via Digitalmars-d-bugs (32/32) Sep 01 2015 https://issues.dlang.org/show_bug.cgi?id=14993
https://issues.dlang.org/show_bug.cgi?id=14993 Issue ID: 14993 Summary: Allocating in a destructor segfaults instead of throwing InvalidMemoryOperationError Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: thecybershadow gmail.com /////// test.d /////// struct S { ~this() { new int; } } void main() { foreach (n; 0..10) { new S[10]; } } ////////////////////// Introduced in https://github.com/D-Programming-Language/druntime/pull/1325 --
Sep 01 2015