What wrong?
Daniel Kozák via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 4 02:13:41 PDT 2015
On Mon, 04 May 2015 08:48:45 +0000
Fyodor Ustinov via Digitalmars-d <digitalmars-d at puremagic.com> 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 think it is releted with this chage:
http://dlang.org/changelog.html#heap-struct-destructors
So your code has been probably wrong before, but accidentally works
More information about the Digitalmars-d
mailing list