www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21880] New: [REG 2.095] scope variable assigned to non-scope


          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)'.
void spawnProcess(scope const(char*)*, File = File())  safe

void pipeProcess(scope const(char*)* args)  safe

void pipeProcessImpl(alias spawnFunc, Cmd)(Cmd command)  trusted 

struct File
    ~this()  safe

Caused by https://github.com/dlang/dmd/pull/12162

Apr 29