[Issue 23774] New: [REG 2.103-beta] cannot inline function `core.bitop.Split64.this`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 11 16:49:58 UTC 2023


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

          Issue ID: 23774
           Summary: [REG 2.103-beta] cannot inline function
                    `core.bitop.Split64.this`
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

Compiling

```
import core.bitop;

int foo(ulong x)
{
   return bsr(x);
}
```

with `dmd -c -m32 -inline -wi" produces:
/dlang/dmd-beta/linux/bin64/../../src/druntime/import/core/bitop.d(45):
Warning: cannot inline function `core.bitop.Split64.this`

The assembly shows that the ctor is indeed not inlined.

--


More information about the Digitalmars-d-bugs mailing list