www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13864] New: tuple expand causes range violation

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 puremagic.com
          Reporter: vlevenfeld 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
    }

--
Dec 15 2014