What wrong?

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 15 06:04:29 PDT 2015


On Saturday, 2 May 2015 at 02:51:52 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?

(Copying my reply to the post in the main group here:)

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-learn mailing list