Summary: [CTFE] Failed return of dynamic array item
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-04-10 16:41:23 PDT ---
int foo() {
    int[] arr = new int[1];
    return arr[0];
static assert(foo() == 0);
void main() {}

dmd 2.043 prints:

test1.d(5): Error: static assert  (null == 0) is not evaluatable at compile

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

Reply via email to