What wrong?

anonymous via Digitalmars-d digitalmars-d at puremagic.com
Fri May 15 06:02:31 PDT 2015


On Monday, 4 May 2015 at 08:48:47 UTC, Fyodor Ustinov wrote:
> Simple code:
>
> http://pastebin.com/raw.php?i=7jVeMFXQ
>
> This code works compiled by DMD v2.066.1 and LDC2 (0.15.1) based
> on DMD v2.066.1 and LLVM 3.5.0.
>
> $ ./z
> TUQLUE
> 42
> 11
>
> Compiled by DMD v2.067.1 the program crashes:
> $ ./aa
> TUQLUE
> Segmentation fault
>
> What I'm doing wrong?

I investigated this further. std.variant is to blame. I filed an 
issue an made a pull request to fix it:

https://issues.dlang.org/show_bug.cgi?id=14585
https://github.com/D-Programming-Language/phobos/pull/3284


More information about the Digitalmars-d mailing list