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

2014-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12642 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

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

2014-05-26 Thread via Digitalmars-d-bugs
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

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

2014-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12642 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|REOPENED|RESOLVED

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

2014-05-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12642 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

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

2014-05-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12642 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

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

2014-05-25 Thread via Digitalmars-d-bugs
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 --

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

2014-05-25 Thread via Digitalmars-d-bugs
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

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

2014-04-27 Thread via Digitalmars-d-bugs
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

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

2014-04-26 Thread via Digitalmars-d-bugs
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 --

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

2014-04-25 Thread via Digitalmars-d-bugs
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. --