From stdcxx-dev-return-4502-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Thu Aug 23 22:56:52 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 49358 invoked from network); 23 Aug 2007 22:56:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 22:56:52 -0000 Received: (qmail 23723 invoked by uid 500); 23 Aug 2007 22:56:48 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 23709 invoked by uid 500); 23 Aug 2007 22:56:48 -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 23698 invoked by uid 99); 23 Aug 2007 22:56:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 15:56:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 22:56:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2C47071420A for ; Thu, 23 Aug 2007 15:56:31 -0700 (PDT) Message-ID: <10296120.1187909791178.JavaMail.jira@brutus> Date: Thu, 23 Aug 2007 15:56:31 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-77) [MSVC 7.1] operator new doesn't throw std::bad_alloc on failure In-Reply-To: <653670300.1133386230229.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-77: ------------------------------- Affects Version/s: 4.1.3 4.1.4 This affects all released versions of stdcxx. > [MSVC 7.1] operator new doesn't throw std::bad_alloc on failure > --------------------------------------------------------------- > > Key: STDCXX-77 > URL: https://issues.apache.org/jira/browse/STDCXX-77 > Project: C++ Standard Library > Issue Type: Bug > Components: 18. Language Support > Affects Versions: 4.1.2, 4.1.3, 4.1.4 > Environment: MSVC 7.1 > Reporter: Martin Sebor > Assignee: Martin Sebor > > $ cat t.cpp && nmake t.exe && ./t > #include > #include > #include > int main () > { > _CrtSetReportMode (_CRT_WARN, _CRTDBG_MODE_DEBUG); > _CrtSetReportMode (_CRT_ERROR, _CRTDBG_MODE_DEBUG); > _CrtSetReportMode (_CRT_ASSERT, _CRTDBG_MODE_DEBUG); > int success = 0; > try { > operator new ((unsigned long)-1024); > } > catch (std::bad_alloc&) { success = 1; } > catch (...) { } > assert (success); > } > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > Copyright (C) Microsoft Corporation. All rights reserved. > link -nologo /NODEFAULTLIB:msvcprtd /debug /LIBPATH:.\..\..\..\..\lib /OUT:t.exe t.obj testx15d_msvc_7_1.lib tlt15d_msvc_7_1.lib std15d_msvc_7_1.lib user32.lib > LINK : LNK6004: t.exe not found or not built by the last incremental link; performing full link > Assertion failed: success, file t.cpp, line 20 > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.