← Back to index
|
Original Bugzilla link
Bug 14840 – [2.068.0-b2] failure to inline functions with loops
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-07-27T20:57:00Z
Last change time
2017-02-20T18:22:40Z
Keywords
performance
Assigned to
nobody
Creator
wyrlon
Comments
Comment #0
by wyrlon — 2015-07-27T20:57:43Z
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
Comment #1
by jack — 2017-02-20T18:22:40Z
This works in 2.073.0