https://issues.dlang.org/show_bug.cgi?id=19693
Issue ID: 19693
Summary: core.bitop.bitswap fails to compile with -inline
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
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).
--