Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 36703 invoked from network); 24 Jul 2008 15:10:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 15:10:11 -0000 Received: (qmail 69318 invoked by uid 500); 24 Jul 2008 15:10:11 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 69294 invoked by uid 500); 24 Jul 2008 15:10:10 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 69283 invoked by uid 99); 24 Jul 2008 15:10:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 08:10:10 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=SPF_PASS,SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 15:09:16 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m6OF7ecE022569 for ; Thu, 24 Jul 2008 15:07:40 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: STDCXX-600 Date: Thu, 24 Jul 2008 09:07:20 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: STDCXX-600 Thread-Index: AcjtHqW/k/oFeT9AQfSKMOyFF6yRIAAgCnVA References: <4887C2ED.9050505@roguewave.com> From: "Eric Lemings" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 > -----Original Message----- > From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor > Sent: Wednesday, July 23, 2008 5:47 PM > To: dev@stdcxx.apache.org > Subject: Re: STDCXX-600 >=20 > Eric Lemings wrote: > > =20 > > FYI-type stuff. > >=20 > > I've been at this issue for the past couple hours. Here's what I've > > found so far. > >=20 > > My basic test case looks like this: > >=20 > > #include > > #include > > =20 > > int main () { > > try { > > // throw statement (see below) > > } catch (std::exception&) { > > } catch (...) { > > } > >=20 > > return 0; > > } > >=20 > > The following "throw statements" all throw exceptions that are not > > getting caught by the compiler's runtime libraries: > >=20 > > a. _RW::__rw_throw (_RWSTD_ERROR_OUT_OF_RANGE, _RWSTD_FUNC > > ("main()"), 1, 0); > > b. _RW::__rw_throw_proc (_RWSTD_ERROR_OUT_OF_RANGE, "what"); > >=20 > > No clue yet why they are not caught. > >=20 > > The following "throw statement" however is caught properly: > >=20 > > c. char* what =3D "what"; throw=20 > (_STD::out_of_rang&)_STD::out_of_range > > ()._C_assign (what, 0); >=20 > Have you tried changing this to something like: >=20 > _STD::out_of_range ex; > ex._C_assign (what, 0); > throw ex; I did but I got some sort of weird compile error: invalid goto label or something like that. Brad.