If two classes alias this each other and their is an unknown identifier DMD will fail with segmentation fault: 11. This is on DMD 2.061, Mac OS X 10.8.2. Example: class foo { bar fun; alias fun this; this() { fun = new bar(this); fun.a = 5; //remove this line and the program will compile. } } class bar { foo sun; alias sun this; this(foo t) { sun = t; } } void main() { foo fun = new foo; }
Specifically, a stack overflow
Fixed by https://github.com/dlang/dmd/pull/6969 *** This issue has been marked as a duplicate of issue 17380 ***