This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/14236] dynamically-sized arrays break alloca()
- From: "sds at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2005 17:47:13 -0000
- Subject: [Bug middle-end/14236] dynamically-sized arrays break alloca()
- References: <20040221103623.14236.aoliva@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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