www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19632] New: [CTFE][SIMD] Error: invalid foreach aggregate

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

          Issue ID: 19632
           Summary: [CTFE][SIMD] Error: invalid foreach aggregate
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

int doubleAndSumInt(int4 v)
{
    int sum = 0;
    foreach (ref e; v)
        sum += (e *= 2);
    return sum;
}

--
Jan 29