Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 499 invoked from network); 1 Mar 2007 17:27:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 17:27:11 -0000 Received: (qmail 12641 invoked by uid 500); 1 Mar 2007 17:27:20 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 12627 invoked by uid 500); 1 Mar 2007 17:27:20 -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 12615 invoked by uid 99); 1 Mar 2007 17:27:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 09:27:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.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; Thu, 01 Mar 2007 09:27:08 -0800 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l21HQk3J003314 for ; Thu, 1 Mar 2007 17:26:46 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 1 Mar 2007 10:26:33 -0700 Message-ID: <45E70CD7.7070102@roguewave.com> Date: Thu, 01 Mar 2007 10:26:47 -0700 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: svn commit: r513406 - /incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp References: <20070301170108.4415A1A981A@eris.apache.org> In-Reply-To: <20070301170108.4415A1A981A@eris.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Mar 2007 17:26:33.0105 (UTC) FILETIME=[C1AAB010:01C75C26] X-Virus-Checked: Checked by ClamAV on apache.org faridz@apache.org wrote: > Author: faridz > Date: Thu Mar 1 09:01:07 2007 > New Revision: 513406 > > URL: http://svn.apache.org/viewvc?view=rev&rev=513406 > Log: > 2007-03-01 Farid Zaripov > > * 18.limits.traps.cpp (test_trap): New function to avoid MSVC error C2712: > Cannot use __try in functions that require object unwinding; > (test_traps) Used test_trap() function. Strange. I'm pretty sure the code used to compile with MSVC (otherwise why would it contain MSVC-specific hackery?) Maybe it compiled with 7.0 and got broken by 7.1. Good to know we can still count on Microsoft to break compatibility, even between minor compiler versions. Here's the MSDN info on the error: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/C2712.asp [...] > +template > numT test_traps (numT, int lineno, bool) > { > static const char* const tname = rw_any_t (numT ()).type_name (); > @@ -138,6 +152,7 @@ > // Windows SEH hackery > trapped = true; > } > +// test_trap (one, zero, result, trapped); You didn't really mean to comment this out, did you? Martin