www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14851] New: [REG2.068.0-b2] Cannot assign array operation

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

          Issue ID: 14851
           Summary: [REG2.068.0-b2] Cannot assign array operation result
                    to static array variable
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

Separate regression issue part from:
https://issues.dlang.org/show_bug.cgi?id=14850

void main()
{
    int[8] a, b, c;

    c = a[] | b[]; // NG from 2.068.0-b2
    c = a[] ^ b[]; // NG from 2.068.0-b2

    c[] = a[] | b[]; // OK
    c[] = a[] ^ b[]; // OK
}

--
Jul 30 2015