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

          Issue ID: 17506
           Summary: [REG2.075] @disable constructor requires members to be
                    initialized
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

cat > main.d << CODE
struct TreeMap
{
    this() @disable;
    this(TTree tree) { this.tree = tree; }
    TTree tree;
}

struct TTree
{
    this() @disable;
    this(int foo) {}
    ~this() {}
}

void main()
{
    auto k = TreeMap(TTree(1));
}
CODE

$ main.d
treemap.d(3): Error: field tree must be initialized in constructor

--

Reply via email to