https://issues.dlang.org/show_bug.cgi?id=12642
Kenji Hara <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #7 from Kenji Hara <[email protected]> --- (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 --
