Summary: [CTFE] null pointer exception on setting array length
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-03-28 11:22:41 PDT ---
cat > bug.d << CODE
struct S
    size_t foo()
        _ary.length += 1;
        return _ary.length;

    int[] _ary;

enum len = S().foo();

dmd -c bug


Happens only if array is a struct field and when
read-assign on length (pre/post-increment or opAssign).

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to