Comment #0 by silvioricardoc — 2009-01-20T08:38:08Z
Compiler segfaults when processing the following template if it was mixed in a struct. It doesn't if the mixin happened inside a class.
It complains that Templ.this(int) is not a ctor (and that, hence, you can't forward to this(double) from there) before crashing.
template Templ () {
this(int i) { this(0.0); }
this(double d) { }
}
class C { mixin Templ; } // OK
struct S { mixin Templ; } // Crashes in Templ
void main() { }