[Issue 13864] New: tuple expand causes range violation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 15 04:55:52 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13864

          Issue ID: 13864
           Summary: tuple expand causes range violation
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: vlevenfeld at gmail.com

import std.typecons;
void main (string[] args)
    {/*...}*/
        int[] x = [2,3,4];

        writeln (x[0]);
        writeln (x[0.tuple.expand]); // BUG range violation
    }

--


More information about the Digitalmars-d-bugs mailing list