Unexplainable behaviour with direct struct assignment.
HuskyNator
HuskyNator at protonmail.ch
Wed May 18 21:49:14 UTC 2022
On Wednesday, 18 May 2022 at 20:16:51 UTC, Dennis wrote:
> On Wednesday, 18 May 2022 at 20:05:05 UTC, HuskyNator wrote:
>> This will print:
>> ```
>> 0
>> 50
>> nan
>> ```
>
> Which compiler and flags are you using? For me it just prints
> 50, you might be stumbling on some (old) bugs in the DMD
> backend with floating point registers. Examples of such bugs
> are:
>
> https://issues.dlang.org/show_bug.cgi?id=18573
> https://issues.dlang.org/show_bug.cgi?id=22163
I've been using `DMD 2.098.0` using a default DUB (1.27.0) init
project (I'm not quite sure what the compile flags are).
After updating to `DMD 2.100.0` & `DUB 1.29.0`, I still get this
behavior.
Only when I use `dub run --b=debug` however (default for me).
`dub run --b=release` does return what one would expect.
More information about the Digitalmars-d-learn
mailing list