digitalmars.D.bugs - [Issue 21880] New: [REG 2.095] scope variable assigned to non-scope
- d-bugmail puremagic.com (38/38) Apr 29 2021 https://issues.dlang.org/show_bug.cgi?id=21880
https://issues.dlang.org/show_bug.cgi?id=21880 Issue ID: 21880 Summary: [REG 2.095] scope variable assigned to non-scope parameter calling function Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: ibuclaw gdcproject.org 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 --
Apr 29 2021