← Back to index
|
Original Bugzilla link
Bug 17457 – Named Return Value Optimization (NRVO) not done with return of constructor call
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-31T07:50:00Z
Last change time
2017-08-07T13:16:31Z
Assigned to
nobody
Creator
bugzilla
See also
https://issues.dlang.org/show_bug.cgi?id=17448
Comments
Comment #0
by bugzilla — 2017-05-31T07:50:21Z
NRVO is not done for: struct S { ulong[10] x; // ensure stack placement instead of register placement this(int i); } S foo() { return S(10); } but is done for: S foo() { auto s = S(10); return s; }
Comment #1
by bugzilla — 2017-05-31T08:04:16Z
https://github.com/dlang/dmd/pull/6847
Comment #2
by github-bugzilla — 2017-06-10T00:55:40Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/2fd96914cdd3fb2ddf29872b1c80415ce636916d
fix Issue 17457 - Named Return Value Optimization (NRVO) not done with return of constructor call
https://github.com/dlang/dmd/commit/10e086ab9970750479711f05f4d06128e178377e
Merge pull request #6847 from WalterBright/fix17457 fix Issue 17457 - Named Return Value Optimization (NRVO) not done wit… merged-on-behalf-of: Andrei Alexandrescu <
[email protected]
>
Comment #3
by github-bugzilla — 2017-08-07T13:16:31Z
Commits pushed to newCTFE at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/2fd96914cdd3fb2ddf29872b1c80415ce636916d
fix Issue 17457 - Named Return Value Optimization (NRVO) not done with return of constructor call
https://github.com/dlang/dmd/commit/10e086ab9970750479711f05f4d06128e178377e
Merge pull request #6847 from WalterBright/fix17457