Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 387 invoked from network); 17 Aug 2007 10:15:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 10:15:12 -0000 Received: (qmail 24122 invoked by uid 500); 17 Aug 2007 10:15:10 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 24058 invoked by uid 500); 17 Aug 2007 10:15:09 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 24047 invoked by uid 99); 17 Aug 2007 10:15:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 03:15:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 10:15:08 +0000 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l7HAEkLl026398 for ; Fri, 17 Aug 2007 10:14:46 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: svn commit: r565959 - /incubator/stdcxx/trunk/etc/config/src/EXTERN_C_EXCEPTIONS.cpp Date: Fri, 17 Aug 2007 04:13:49 -0600 Message-ID: In-Reply-To: <46C25484.3040604@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r565959 - /incubator/stdcxx/trunk/etc/config/src/EXTERN_C_EXCEPTIONS.cpp Thread-Index: Acfe2kQvooHLV76XS8KsrQ1XDSf8mAB2946g References: <20070814224803.62DC81A981D@eris.apache.org> <46C25484.3040604@roguewave.com> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 >Martin Sebor wrote:=20 > >Travis Vitek wrote: >> Martin, >>=20 >> I'm not sure if you're aware, but I don't believe that the=20 >> destructors for stack objects inside the C functions will >> be called. I know that this is the case for MSVC7/8. This >> isn't an issue for your testcase, but it may be an issue >> for the functions invoked by __rw_once. > >Interesting! I didn't know about this limitation. It's something >we need to keep in mind when writing the initialization functions. >Perhaps the solution will be to require the initialization function >to have the empty exception specification. That way we could rely >on the compiler to detect initialization functions that can throw. > I just found out that the /Ehc flag enables the nothrow default for C linkage functions. So changing the /EHsc flag to /EHs will fix this for both VC7 and 8. Travis