Funny way to crash dmd and brick the whole computer

Basile B. b2.temp at gmx.com
Mon Oct 1 09:24:18 UTC 2018


On Friday, 28 September 2018 at 11:58:25 UTC, Zardoz wrote:
> 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);
> }

don't try to compile this one linux:

```
void main(){  asm{ db cast(ubyte[]) "é"; }  }
```


More information about the Digitalmars-d mailing list