https://issues.dlang.org/show_bug.cgi?id=12642
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=12642
--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f8c228cf20b656db91ef478b20a34d290888647b
Additional issue 12642 fix
https://issues.dlang.org/show_bug.cgi?id=12642
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|REOPENED|RESOLVED
https://issues.dlang.org/show_bug.cgi?id=12642
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull, rejects-valid
https://issues.dlang.org/show_bug.cgi?id=12642
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
some heap allocation cases for fixed-size arrays
https://github.com/D-Programming-Language/dmd/commit/b5b5ecc0afde7c60a3ea1c27a03d75e828437068
Merge pull request #3582 from 9rnsr/fix_nogc
Issue 12642 - Avoid some heap allocation cases for fixed-size arrays
--
https://issues.dlang.org/show_bug.cgi?id=12642
--- Comment #6 from bearophile_h...@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
https://issues.dlang.org/show_bug.cgi?id=12642
--- Comment #3 from bearophile_h...@eml.cc ---
Another comment by Timon Gehr:
The front end already distinguishes dynamic and static array literals
(in a limited form), this distinction should simply carry through to
code generation and static
https://issues.dlang.org/show_bug.cgi?id=12642
--- Comment #2 from bearophile_h...@eml.cc ---
See also a comment:
http://forum.dlang.org/post/ixrdixakezvtilemi...@forum.dlang.org
--
https://issues.dlang.org/show_bug.cgi?id=12642
--- Comment #1 from Kenji Hara k.hara...@gmail.com ---
If you remove @nogc annotation, all array literals will be allocated on stack.
So this is pure front-end issue, and may be fixed easily.
--
10 matches
Mail list logo