https://issues.dlang.org/show_bug.cgi?id=3827

--- Comment #37 from [email protected] ---
(In reply to yebblies from comment #36)

> Try it, look at the asm.  No memory allocation.

The asm is not enough. @nogc is a purely front-end thing, to avoid different
optimizations in different compilers to lead to @nogc-annotated code to compile
or not compile in different compilers. So this problem is not a bug, it's an
enhancement request, to add this optimization in the front-end.

--

Reply via email to