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

--- Comment #1 from Orvid King <[email protected]> ---
I believe that the issue here is not that DMD inlines alloca (which it should) 
but instead that it fails to recognize that the memory allocated by alloca 
should be released at the end of the scope's body. 

Another issue that could be considered to fix this exact code is that the 
alloca call there has a size known at compile-time, and so should actually be 
getting eliminated entirely in favor of a static array local.

--

Reply via email to