Severe 2.084 regression when using staticArray on array of struct with class and bool member
Simen Kjærås
simen.kjaras at gmail.com
Wed Feb 13 10:10:21 UTC 2019
On Wednesday, 13 February 2019 at 09:05:17 UTC, Per Nordlöw wrote:
> On Tuesday, 12 February 2019 at 21:01:12 UTC, Basile B. wrote:
>> On Tuesday, 12 February 2019 at 20:26:55 UTC, Basile B. wrote:
>>> The bug goes away when S size is over or equal to 33 bytes
>>> because in this case the parameter is well copied.
>>
>> correction: I meant 17, not 33.
>
> Does this happen for every struct `S`, where
>
> S.sizeof <= 16
>
> or does
>
> S.tupleof
>
> play a role aswell?
S.sizeof 9 to 16, only for long and ulong. Order doesn't matter.
Tested with other 8-byte types like double, int[2], short[4],
ubyte[8], and it works fine. The type of the padding field also
doesn't seem to matter.
--
Simen
More information about the Digitalmars-d
mailing list