D2 code: struct Foo { static f = Foo(0); // line 2 int x; } void main() {} DMD 2.057beta refuses it, but I think it's correct code: test.d(2): Error: more initializers than fields of Foo Workaround: define 'f' after x: struct Foo { int x; static f = Foo(0); // line 2 } void main() {}
*** This issue has been marked as a duplicate of issue 7742 ***