[Issue 19967] New: segmentation fault when auto ref with default values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 14 17:55:54 UTC 2019


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 at puremagic.com
          Reporter: qs.il.paperinik at 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.

--


More information about the Digitalmars-d-bugs mailing list