[Issue 3822] Memory allocated with alloca() is freed at end of scope instead at end of function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 10 22:08:31 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3822
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
Platform|Other |All
Version|2.040 |D1 & D2
AssignedTo|nobody at puremagic.com |yebblies at gmail.com
OS/Version|Windows |All
--- Comment #6 from yebblies <yebblies at gmail.com> 2012-02-11 17:08:28 EST ---
The issue here is that n is a compile-time constant, so the call to alloca is
optimized away completely, and always reserving the extra space. This
optimization is not valid if the call to alloca might be repeated.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list