[Issue 18461] core.bitop.bt returns garbage in release code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 18 23:26:21 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18461

--- Comment #3 from Seb <greensunny12 at gmail.com> ---
> It is important to clarify: please run example several times, 10-20 times or so and you will see difference in exit code values.

Tried it 100x times without any change:

---
for i in $(seq 100) ; do dmd -release -run - <<EOF
import core.bitop;

void main()
{
    size_t test_val = 0b0001_0000;

    if(bt(&test_val, 4) != 0)
        assert(false);
}
EOF
done
---

But I can reproduce it with dub:

---
> seq 10 | parallel -j1 -n0 dub -v run --single bitop.d --build=release 2>&1 | grep "exited with code -4"     
Program exited with code -4
Program exited with code -4
Program exited with code -4
Program exited with code -4
---

--


More information about the Digitalmars-d-bugs mailing list