Created attachment 1263
repro case
When initializing a struct inside a constructor it is destroyed first.
Initializling a struct within the constructor should be equal to:
auto var = StructType(5);
See attached repro case.
Comment #1 by code — 2013-10-13T12:16:07Z
To be more percise in dmd 2.062 and earlier the repro case would print
ctor 5
dtor
Starting with dmd 2.063 this prints
ctor
dtor
dtor