https://issues.dlang.org/show_bug.cgi?id=24838
--- Comment #9 from Richard (Rikki) Andrew Cattermole <[email protected]> --- Okay now it starts to make sense what you are wanting. If the closure's layout is a pointer in size or less you do not want it to exist. It does require that this value is not modified, although what a pointer points to may be modified (head const). That leads me to the question for Walter, how much in the frontend needs to change for this optimization to be implemented by ldc/gdc? If it does not need to be changed, then this should be viewed as a ldc/gdc bug not a dmd one (which you shouldn't be using when optimizations are needed). --
