[Issue 14690] New: pragma(inline, true) functions must have their bodies emitted in the .di file
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jun 11 22:13:30 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14690
Issue ID: 14690
Summary: pragma(inline, true) functions must have their bodies
emitted in the .di file
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: andrei at erdani.com
Consider:
pragma(inline, true)
int fun(int a, int b)
{
return 3;
}
Upon converting to .di, the code becomes:
pragma(inline, true)int fun(int a, int b);
Inline functions should have their bodies generated in the .di file for obvious
reasons.
--
More information about the Digitalmars-d-bugs
mailing list