Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 36865 invoked from network); 30 Nov 2005 21:53:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Nov 2005 21:53:53 -0000 Received: (qmail 27457 invoked by uid 500); 30 Nov 2005 21:53:53 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 27437 invoked by uid 500); 30 Nov 2005 21:53:53 -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 27426 invoked by uid 99); 30 Nov 2005 21:53:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2005 13:53:51 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DA150CB for ; Wed, 30 Nov 2005 22:53:30 +0100 (CET) Message-ID: <375314193.1133387610891.JavaMail.jira@ajax.apache.org> Date: Wed, 30 Nov 2005 22:53:30 +0100 (CET) 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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-77?page=all ] Martin Sebor updated STDCXX-77: ------------------------------- Component: 18. Language Support Summary: [MSVC 7.1] operator new doesn't throw std::bad_alloc on failure (was: [MSVC 8.0] operator new doesn't throw std::bad_alloc on failure3) Version: 4.1.2 Environment: MSVC 7.1 (was: ) Assign To: Martin Sebor > [MSVC 7.1] operator new doesn't throw std::bad_alloc on failure > --------------------------------------------------------------- > > Key: STDCXX-77 > URL: http://issues.apache.org/jira/browse/STDCXX-77 > Project: STDCXX > Type: Bug > Components: 18. Language Support > Versions: 4.1.2 > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira