Summary: [CTFE]: AA.length doesn't compile when AA is null
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 2011-10-04 05:53:43 PDT ---
At compile time, if an AA is null, then AA.length is zero.

int main()
    int[int] w;
    return w.length; // OK


static assert({
    int[int] w;
    return w.length;

fails with:
\..\src\druntime\import\object.di(362): Error: _aaLen cannot be interpreted at
compile time, because it has no available source code

Both D1 and D2.

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

Reply via email to