www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15441] New: dmd segfaults using std.experimental.ndslice


          Issue ID: 15441
           Summary: dmd segfaults using std.experimental.ndslice
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: sfrijters gmail.com

Using the 0.8.3 dub version of std.experimental.ndslice, dmd 2.069.1 segfaults
on the following reduced code:

import std.experimental.ndslice;

void main() {
    Slice!(3, double*) force = new double[60].sliced(3, 4, 5);
    // Wrong foreach params. dmd failed with exit code -11.
    foreach(p, e; force)

See also ttxfuwiesghpbnlwytfr forum.dlang.org.

Dec 14 2015