[Issue 20420] New: [REG2.067] inlining error with a valid function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 27 04:11:43 UTC 2019


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

          Issue ID: 20420
           Summary: [REG2.067] inlining error with a valid function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: sahmi.soulaimane at gmail.com

Test case:
```
struct S { ~this(); }

class C
{
    this(S, int) {}
}

int i();

C create()
{
    return new C(S(), i());
}

auto test()
{
    auto c = create();
}
```

When compiled with `-inline` it fails, otherwise it works normally.

--


More information about the Digitalmars-d-bugs mailing list