Forward referencing issues with CTFE

Christopher Wright dhasenan at gmail.com
Mon Nov 5 17:06:19 PST 2007


Does not compile:
static const int i = foo();
int foo () { return 0; }

Compiles:
int foo () { return 0; }
static const int i = foo();

Is this a known bug, or is it another thing to append to #340? I didn't 
see anything relating to it in bugzilla yet.


More information about the Digitalmars-d-bugs mailing list