[Issue 12642] Avoid some heap allocation cases for fixed-size arrays

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 25 22:25:04 PDT 2014


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

--- Comment #6 from bearophile_hugs at eml.cc ---
There is one more missing case, is this worth opening another ER, or not?


import core.simd;
ulong2 foo() @nogc {
    return [0, 0];
}
void main() {}


test.d(3,12): Error: array literal in @nogc function foo may cause GC
allocation

--


More information about the Digitalmars-d-bugs mailing list