March 24, 2021 [Issue 21756] New: Immutable array literals cause runtime GC allocation instead of static readonly section allocation | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21756 Issue ID: 21756 Summary: Immutable array literals cause runtime GC allocation instead of static readonly section allocation Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: major Priority: P3 Component: dmd Assignee: nobody@puremagic.com Reporter: eyal@weka.io auto f() { return "abc"; } // @nogc, cheap auto g() { return ['a', 'b', 'c']; } // allocates via GC, at runtime -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply