Test case: struct Foo { int i; void fun() { --i; } this(int a) { i = a; fun(); } } void main() { assert (Foo(2).i == 1); } static assert (Foo(2).i == 1); The above refuses to compile, giving the following error: test.d(19): Error: static assert (2 == 1) is false This is purely a CTFE issue; if the static assert is removed, the assert in main() passes at run time, as it should. It seems the call to fun() is neglected when the struct is constructed at compile time.
Already fixed in git master. *** This issue has been marked as a duplicate of issue 6337 ***