From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8592 invoked by alias); 13 Apr 2004 09:07:54 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8585 invoked from network); 13 Apr 2004 09:07:54 -0000 Received: from unknown (HELO desnol.ru) (217.150.58.74) by sources.redhat.com with SMTP; 13 Apr 2004 09:07:54 -0000 Received: from desnol.ru (localhost [127.0.0.1]) by desnol.ru (Postfix) with SMTP id 9B6A0823 for ; Tue, 13 Apr 2004 13:07:53 +0400 (MSD) Received: from agri-home (agrihs [10.1.3.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by desnol.ru (Postfix) with ESMTP id 7586D488 for ; Tue, 13 Apr 2004 13:07:53 +0400 (MSD) Date: Tue, 13 Apr 2004 09:07:00 -0000 From: Agri To: gcc-help@gcc.gnu.org Subject: alloca within inline function Message-Id: <20040413130752.342fc7cd@agri-home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00156.txt.bz2 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