[D1] assert failure expression.c

bearophile bearophileHUGS at lycos.com
Sat Oct 9 10:51:21 PDT 2010


> You (or me or someone else) may add this to Bugzilla:
> 
> char[2] foo() {
>     char[2] code;
>     code[1] = "";
>     return code;
> }
> struct Bar {
>     int i = mixin(foo());
> }
> void main() {}

Further reduced:


void foo() {
    char[0] code;
    code[0] = "";
}
struct Bar {
    int i = mixin(foo());
}
void main() {}


More information about the Digitalmars-d-learn mailing list