July 27, 2015 [Issue 14840] New: [2.068.0-b2] failure to inline _trivial_ function | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14840 Issue ID: 14840 Summary: [2.068.0-b2] failure to inline _trivial_ function Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: wyrlon@gmx.net void Bug(uint val) { pragma(inline, true); for(int i=0;i<2;++i) {} } void main() { Bug(1); } dmd -inline bug.d bug.d(1): Error: function bug.Bug cannot inline function -- |
Copyright © 1999-2021 by the D Language Foundation