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

           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
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 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();
CODE

dmd -c bug

--------

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

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

Reply via email to