[Issue 9273] DMD Segfaulting with templated ctors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 5 07:33:10 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9273



--- Comment #1 from David <admin at dav1d.de> 2013-01-05 07:33:08 PST ---
To make it even better:

Compiles:
---------------------------------------
class NBTFile : TAG_Compound {
    this()() {}
}

template _Base_TAG(int id_, DType_) {
this(T)() {
}

}

struct TAG {}

class TAG_Compound {
mixin _Base_TAG!(10, TAG);

}
---------------------------------------

Fails:
---------------------------------------
class NBTFile : TAG_Compound {
    this()() {}
}

template _Base_TAG(int id_, DType_) {
this(T)() {
}

}

struct TAG {}

class TAG_Compound {
mixin _Base_TAG!(10, TAG);

}

void main() {
    NBTFile s = new NBTFile();
}
---------------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list