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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 18 23:29:59 UTC 2018


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #4 from ag0aep6g at gmail.com ---
(In reply to Seb from comment #2)
> 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
[...]
> ---

You're missing `-O -inline`. DUB's release mode implies them.

> 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

Same behavior.

--


More information about the Digitalmars-d-bugs mailing list