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: [email protected]
          Reporter: [email protected]

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

--

Reply via email to