stops compiling

Kyle Furlong kylefurlong at gmail.com
Wed Mar 22 16:11:17 PST 2006


Walter Bright wrote:
> "debugger" <debugger_member at pathlink.com> wrote in message 
> news:dvj2tg$2i3s$1 at digitaldaemon.com...
>> dmd 0.149,Win stops compiling without messsage if number of statements is 
>> too
>> large.
>>
>> void init1(){}
>> void init2(){
>> init1();
>> // ... 16,000 times -> stops
>> //     only 8,000 times -> compiles
>> init1();
>> }
>> void init3(){}
> 
> It's a stack overflow in the compiler. No big deal, it'll be fixed in the 
> next update. I kinda wonder, though, what purpose 16,000 statements serves? 
> 
> 

To try and make a perfect compiler of course! <g> Or did you just increase the stack size? Could I still smash it with say... a 
million statements?



More information about the Digitalmars-d-bugs mailing list