[Issue 15292] New: [REG2.068.0] Segmentation fault with self-referencing struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 5 12:15:31 PST 2015


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

          Issue ID: 15292
           Summary: [REG2.068.0] Segmentation fault with self-referencing
                    struct
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: thecybershadow at gmail.com

>From http://stackoverflow.com/q/33553013/21501:

///////////// test.d ////////////
import std.typecons;

struct Node {
    int value;
    NullableRef!Node left, right;
}

void main() {
    Node n;
}
/////////////////////////////////

Introduced in https://github.com/D-Programming-Language/dmd/pull/4820

--


More information about the Digitalmars-d-bugs mailing list