Funny way to crash dmd and brick the whole computer

Zardoz luis.panadero at gmail.com
Fri Sep 28 11:58:25 UTC 2018


CTE fib :

module fib_cte;
import std.stdio;

long fib(long n) {
   if (n <= 1) return 1;
   return fib(n - 1) + fib(n - 2);
}

static immutable valueFib = fib(46);

void main() {
     writeln(valueFib);
}



More information about the Digitalmars-d mailing list