[Issue 24838] A closure with a layout of pointer size or below that is not modified, should not have a closure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 11 02:35:00 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24838
--- Comment #9 from Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> ---
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).
--
More information about the Digitalmars-d-bugs
mailing list