Bug 15821 – std.container.array.Array on the heap leads to InvalidMemoryOperationError

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-03-22T15:55:00Z
Last change time
2016-03-23T08:32:31Z
Assigned to
nobody
Creator
ag0aep6g

Comments

Comment #0 by ag0aep6g — 2016-03-22T15:55:18Z
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]); } ----
Comment #1 by ag0aep6g — 2016-03-22T15:59:08Z
Issue 15809 looks very similar. This suggests that there's a dmd/druntime bug beneath.
Comment #2 by code — 2016-03-23T08:32:31Z
Why are people on D.learn using the development version of the compiler? *** This issue has been marked as a duplicate of issue 15822 ***