[Issue 19693] New: core.bitop.bitswap fails to compile with -inline
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 22 13:24:24 UTC 2019
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: nobody at puremagic.com
Reporter: r.sagitario at gmx.de
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).
--
More information about the Digitalmars-d-bugs
mailing list