Bug 19693 – core.bitop.bitswap fails to compile with -inline
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-02-22T13:24:24Z
Last change time
2020-11-09T15:05:23Z
Assigned to
No Owner
Creator
Rainer Schuetze
Comments
Comment #0 by r.sagitario — 2019-02-22T13:24:24Z
Compile with "dmd -inline":
import core.bitop;
void main()
{
ulong y = 0x12345678;
ulong x = bitswap(y);
}
/dlang/dmd/linux/bin64/../../src/druntime/import/core/bitop.d(817): Error: function `core.bitop.bitswap` cannot inline function
Could also be considered a druntime issue as it uses pragma(inline,true).
Comment #1 by n8sh.secondary — 2020-11-09T15:05:23Z