[Bug middle-end/14236] dynamically-sized arrays break alloca()
sds at gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 14 20:26:00 GMT 2005
------- Additional Comments From sds at gnu dot org 2005-02-14 17:47 -------
(In reply to comment #9)
> - memory allocated with alloca() is released at the time the function that calls
> alloca() returns
oh - I didn't know that.
I always thought that alloca()ted memory is released by the next "}".
(i.e., identical to dynamic arrays).
Thanks for the clarification.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14236
More information about the Gcc-bugs
mailing list