[Issue 12985] Better error message for not supported array operation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Sep 21 10:59:20 PDT 2014


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

--- Comment #3 from bearophile_hugs at eml.cc ---
Currently this case gets refused, but here the result of the array operation
has a memory zone to go (the stack, inside the variable f):


struct Foo { int[3] a; }
void main() {
    int[3] b;
    auto f = Foo(b[] / 2);
}

--


More information about the Digitalmars-d-bugs mailing list