[Issue 2569] New: static arrays in CTFE functions don't compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 8 02:33:19 PST 2009


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

           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
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: clugdbug at yahoo.com.au


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.


-- 



More information about the Digitalmars-d-bugs mailing list