www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19630] New: [CTFE][SIMD] Error: cannot determine length of

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

          Issue ID: 19630
           Summary: [CTFE][SIMD] Error: cannot determine length of vector
                    slice at compile time
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

enum int4   E1 = int4.init;
enum int[4] E2 = int4.init.array;
enum int[4] E4 = cast(int[4])int4.init.array;
enum int4   E5 = int4(0);
enum int[4] E6 = int4(0).array;
enum int[4] E8 = cast(int[4])int4(0).array;

enum v1 = E1[1..2];
enum v2 = E2[1..2];
enum v4 = E4[1..2];
enum v5 = E5[1..2];
enum v6 = E6[1..2];
auto v7 = E7[1..2];
enum v8 = E8[1..2];

--
Jan 28