← Back to index
|
Original Bugzilla link
Bug 17076 – [scope] compiling identity function template with -dip1000 causes error
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-01-08T20:02:00Z
Last change time
2017-07-21T05:12:13Z
Keywords
safe
Assigned to
nobody
Creator
r.sagitario
See also
https://issues.dlang.org/show_bug.cgi?id=8914
Comments
Comment #0
by r.sagitario — 2017-01-08T20:02:04Z
With dmd-2.073-beta1, compiling this: int identity(T)(T a) { return a; } int ii = identity(3); with "dmd -dip1000 test.d" yields test.d(1): Error: parameter a is 'return' but function does not return any indirections
Comment #1
by bugzilla — 2017-01-09T08:29:26Z
https://github.com/dlang/dmd/pull/6420
Comment #2
by github-bugzilla — 2017-01-09T19:03:32Z
Commit pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/e11a1cd13ce6450bb3b2ec91da267e2b7547fe24
Merge pull request #6420 from WalterBright/ret-ptrs [scope] fix Issue 17076 don't infer 'return' if return type doesn't have pointers
Comment #3
by github-bugzilla — 2017-01-16T23:26:18Z
Commit pushed to newCTFE at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/e11a1cd13ce6450bb3b2ec91da267e2b7547fe24
Merge pull request #6420 from WalterBright/ret-ptrs
Comment #4
by github-bugzilla — 2017-03-22T12:20:57Z
Commit pushed to stable at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/e11a1cd13ce6450bb3b2ec91da267e2b7547fe24
Merge pull request #6420 from WalterBright/ret-ptrs