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: [email protected]
Reporter: [email protected]
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.
--