Bug 15232 – Escape analysis should be more sophisticated

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-21T22:58:05Z
Last change time
2024-12-13T18:45:27Z
Assigned to
No Owner
Creator
timon.gehr
See also
https://issues.dlang.org/show_bug.cgi?id=22563
Moved to GitHub: dmd#19062 →

Comments

Comment #0 by timon.gehr — 2015-10-21T22:58:05Z
Consider the following code: void foo()@nogc{ int x; struct S{ int bar()@nogc{ return x; } } S s; } Error: function foo @nogc function allocates a closure with the GC No closure should be allocated here and in similar cases.
Comment #1 by robert.schadek — 2024-12-13T18:45:27Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19062 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB