http://d.puremagic.com/issues/show_bug.cgi?id=7882

           Summary: Cannot initialize static array member in ctor
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: hst...@quickfur.ath.cx


--- Comment #0 from hst...@quickfur.ath.cx 2012-04-09 18:56:12 PDT ---
Code:

struct S {
    const(int)[4] data;
    this(const(int)[4] d) {
        data = d;
    }
}

void main() {
    S s;
}

Compiler output:

test.d(4): Error: slice this.data[] is not mutable

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to