digitalmars.D.bugs - [Issue 21756] New: Immutable array literals cause runtime GC
- d-bugmail puremagic.com (18/18) Mar 24 2021 https://issues.dlang.org/show_bug.cgi?id=21756
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 --
Mar 24 2021