[Issue 18461] core.bitop.bt returns garbage in release code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 18 23:14:34 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18461
--- Comment #2 from Seb <greensunny12 at gmail.com> ---
I wonder whether this has something to do with DUB (probably not).
1) Can you reproduce the same with just running DMD? (I couldn't on my machine)
---
dmd -release -run - <<EOF
import core.bitop;
void main()
{
size_t test_val = 0b0001_0000;
if(bt(&test_val, 4) != 0)
assert(false);
}
EOF
---
2) Did you check whether it's maybe something with your standard library?
A simple check would be to try including core.bitop.bt in your file:
https://github.com/dlang/druntime/blob/master/src/core/bitop.d#L270
--
More information about the Digitalmars-d-bugs
mailing list