Stack overflow

Timon Gehr timon.gehr at gmx.ch
Fri Jun 22 03:29:47 PDT 2012


On 06/22/2012 12:22 PM, Namespace wrote:
> I have this code:
> http://codepad.org/vz17iZrm
>
> And as long as i comment out the assert's in the constructor on line 10
> and the assert in the invariant on line 16 it works as i want.
> But otherwise the compiler prints stackoverflow and that's all.
>
> Why and how is the stack overflowed with an simple assert?!

On my machine it is the compiler that crashes => compiler bug.
Presumably it is having trouble with the circular alias this.
(BTW, what is 'obj' in the invariant supposed to refer to?)


More information about the Digitalmars-d-learn mailing list