Summary: static arrays in CTFE functions don't compile
           Product: D
           Version: 1.039
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

int foo()
   int [3] a;
   return 0;

static x = foo();

bug.d(7): Error: cannot evaluate foo() at compile time

Interestingly, in D2.023, the error message is displayed twice.


Reply via email to