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

           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
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 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
time

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

Reply via email to