From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29972 invoked by alias); 13 May 2003 21:25:05 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 20804 invoked from network); 13 May 2003 21:23:22 -0000 Received: from unknown (HELO frothingslosh.sfbay.redhat.com) (66.187.237.200) by sources.redhat.com with SMTP; 13 May 2003 21:23:22 -0000 Received: from frothingslosh.sfbay.redhat.com (localhost.localdomain [127.0.0.1]) by frothingslosh.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id h4DLJdNm008377; Tue, 13 May 2003 14:19:39 -0700 Received: (from rth@localhost) by frothingslosh.sfbay.redhat.com (8.12.8/8.12.8/Submit) id h4DLJd99008375; Tue, 13 May 2003 14:19:39 -0700 X-Authentication-Warning: frothingslosh.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Tue, 13 May 2003 21:25:00 -0000 From: Richard Henderson To: Mark Mitchell Cc: Jason Merrill , Alexandre Oliva , Mike Stump , gcc@gcc.gnu.org Subject: Re: __attribute__((cleanup(function)) versus try/finally Message-ID: <20030513211938.GC8273@redhat.com> Mail-Followup-To: Richard Henderson , Mark Mitchell , Jason Merrill , Alexandre Oliva , Mike Stump , gcc@gcc.gnu.org References: <1052419221.3329.111.camel@minax.codesourcery.com> <1052423229.3329.125.camel@minax.codesourcery.com> <1052860011.16075.388.camel@doubledemon.codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1052860011.16075.388.camel@doubledemon.codesourcery.com> User-Agent: Mutt/1.4i X-SW-Source: 2003-05/txt/msg01363.txt.bz2 On Tue, May 13, 2003 at 02:06:50PM -0700, Mark Mitchell wrote: > In any case, there are some semantics to be defined; if a cleanup throws > an exception, what happens? At present, the old exception doesn't get destroyed, and the new exception propagates. I'm not really sure *what* should be said except that it's undefined behaviour. r~