www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15821] New: std.container.array.Array on the heap leads to


          Issue ID: 15821
           Summary: std.container.array.Array on the heap leads to
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: ag0aep6g gmail.com

Found by stunaep who posted to D.learn:
http://forum.dlang.org/post/tbaooqjjjsvgnlchjadc forum.dlang.org

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]);

Mar 22 2016