www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19967] New: segmentation fault when auto ref with default

https://issues.dlang.org/show_bug.cgi?id=19967

          Issue ID: 19967
           Summary: segmentation fault when auto ref with default values
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

Compiling this code

void f(Ts...)(auto ref Ts args = Ts.init) { }

void main()
{
    int x;
    f(x);
}

ends the compiler with a segmentation fault.

--
Jun 14 2019