On Sunday, June 24, 2012 14:29:10 Namespace wrote: > On Sunday, 24 June 2012 at 12:19:47 UTC, Jonathan M Davis wrote: > > On Sunday, June 24, 2012 14:09:38 Namespace wrote: > >> And can me now anybody explain why > >> @disable > >> this(typeof(null)); or any other ctor declaration prints "stack > >> overflow"? > >> How it is possible, that one class and one struct kill the > >> stack? > > > > Please provide a compilable example which exhibits the problem > > so that we can > > see exactly what you're talking about and reproduce it. > > > > - Jonathan M Davis > > http://dpaste.dzfl.pl/ca77bc96 > > Comment out "alias this" in Foo or "@disable this(typeof(null));" > in Test solve the problem. Otherwise it prints "Stack overflow".
My guess is that you've got something recursive going on (possibly a recursive template instantiation, though I don't see any reason why that would occur), which causes it to eat up more and more memory, until the OS kills it. Report it as a dmd bug: http://d.puremagic.com - Jonathan M Davis