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: [email protected]
ReportedBy: [email protected]
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.
--
