void main(){
    mixin({
            string r;
            foreach(i;0..12000) r~=q{mixin(q{{enum x="";}});};
            return r;
        }());
}

When I compile this program, DMD sometimes uses about 1GB of memory, sometimes about 2GB of memory and sometimes it makes my OS crash.

Can anyone reproduce this?

Reply via email to