DMD 2.072.0 crashes when compiling this program: struct Test{ static const A = Test([1, 2, 3]); static const B = Test([4, 5, 6]); int[] x; } void main(){} > dmd test.d Segmentation fault: 11 Changing from const to immutable does not affect the error. It works fine if one of the static const members are removed. It works fine if the members are static enum instead of static const.
Apparently this issue is fixed in master, will close the issue as soon as I'm able to confirm
all platforms were affected, confirmed to be fixed using run.dalng.io: Up to 2.071.2: Success and no output 2.072.2 to 2.073.2: Segfault and no output Since 2.074.1: Success and no output