www.digitalmars.com         C & C++   DMDScript  

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

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

          Issue ID: 19629
           Summary: [CTFE][SIMD] Error: cannot determine length of
                    `cast(__vector(int[4]))0` 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   E5 = int4(0);
enum int[4] E6 = int4(0).array;
enum int[4] E8 = cast(int[4])int4(0).array;

enum v5 = E5[0];
enum v6 = E6[0];
enum v8 = E8[0];

--
Jan 28