https://issues.dlang.org/show_bug.cgi?id=15821
Issue ID: 15821
Summary: std.container.array.Array on the heap leads to
InvalidMemoryOperationError
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
Found by stunaep who posted to D.learn:
http://forum.dlang.org/post/[email protected]
Following code works with 2.070.2, but with git head dmd (ec7c6a9) it throws
"core.exception.InvalidMemoryOperationError@src/core/exception.d(693): Invalid
memory operation".
----
import std.container.array: Array;
void main()
{
new Array!int([1]);
}
----
--