Stack overflow error

Johan Granberg lijat.meREM at OVE.gmail.com
Sat Jan 20 06:25:55 PST 2007


Marcio Faustino wrote:

> The following code:
> void f() { f; }
> void main() {
>     f();
> }
> 
> compiled by DMD v1.0 (on Windows XP) generates an "Error: Stack Overflow"
> error.

This is a programmer error. you are calling the function f within the
function f causing an infinite recursion.


More information about the Digitalmars-d-bugs mailing list