[Issue 12642] Avoid some heap allocation cases for fixed-size arrays
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 26 01:38:41 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12642
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #7 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to bearophile_hugs from comment #6)
> 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
https://github.com/D-Programming-Language/dmd/pull/3587
--
More information about the Digitalmars-d-bugs
mailing list