This used to work but now in 2.062 it causes ctfe error.
Any suggested workaround?

http://dpaste.dzfl.pl/f1a8c2f5
-------------------------------------
import std.datetime;
const(Date) DefaultDate = Date(1929, 10, 29);
void main() {

}
-------------------------------------

Compilation output:
/opt/compilers/dmd2/include/std/datetime.d(13542): Error: Internal Compiler Error: CTFE literal cast(short)1 dmd: ctfeexpr.c:353: Expression* copyLiteral(Expression*): Assertion `0' failed.

Thanks
Dan

Reply via email to