https://issues.dlang.org/show_bug.cgi?id=14510
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #5 from [email protected] --- I came across something similar. The following program crashes on assert, but only when compiled with -O DMD64 D Compiler v2.068.0 ---------------------------- struct SomeStruct { void fff (int n) { SomeStruct next; assert (&next != &this); if (n) next.fff(n-1); } } void main() { SomeStruct root; root.fff(2); } ---------------------------- As a workaround, add return 3; at the end of fff and change void to int --
