This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
alloca within inline function
- From: Agri <agri at desnol dot ru>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 13 Apr 2004 13:07:52 +0400
- Subject: alloca within inline function
As wrote at the libc manual
* A variable size array's space is freed at the end of the scope of
the name of the array. The space allocated with `alloca' remains
until the end of the function.
What about inline function? Does space allocated with alloca withing inline
function is being freed at the end of the function, or at the "real" return?
Is it the same in "c" and "c++"?
Agri