Bug 21880 – [REG 2.095] scope variable assigned to non-scope parameter calling function

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-04-30T00:13:21Z
Last change time
2021-05-12T10:39:28Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-04-30T00:13:21Z
Reduced test compiled with: -preview=dip1000 Works if `extern(D)' or `extern(C)'. --- extern(C++): void spawnProcess(scope const(char*)*, File = File()) @safe { } void pipeProcess(scope const(char*)* args) @safe { pipeProcessImpl!spawnProcess(args); } void pipeProcessImpl(alias spawnFunc, Cmd)(Cmd command) @trusted { spawnFunc(command); } struct File { ~this() @safe { } } --- Caused by https://github.com/dlang/dmd/pull/12162
Comment #1 by dlang-bot — 2021-05-01T18:24:58Z
@ibuclaw created dlang/dmd pull request #12493 "fix Issue 21880 - [REG 2.095] scope variable assigned to non-scope parameter calling function" fixing this issue: - fix Issue 21880 - [REG 2.095] scope variable assigned to non-scope parameter calling function https://github.com/dlang/dmd/pull/12493
Comment #2 by dlang-bot — 2021-05-03T00:18:17Z
dlang/dmd pull request #12493 "fix Issue 21880 - [REG 2.095] scope variable assigned to non-scope parameter calling function" was merged into stable: - 7e78916aa47dc27fefa91efeddd44808e30157b7 by Iain Buclaw: fix Issue 21880 - [REG 2.095] scope variable assigned to non-scope parameter calling function https://github.com/dlang/dmd/pull/12493
Comment #3 by dlang-bot — 2021-05-12T10:39:28Z
dlang/dmd pull request #12516 "merge stable" was merged into master: - 4ec6b7e90cafb55e582dceb42a00394500a851cc by Iain Buclaw: fix Issue 21880 - [REG 2.095] scope variable assigned to non-scope parameter calling function https://github.com/dlang/dmd/pull/12516