From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7919 invoked by alias); 1 Apr 2003 14:29:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7900 invoked by uid 48); 1 Apr 2003 14:29:05 -0000 Date: Tue, 01 Apr 2003 14:29:00 -0000 Message-ID: <20030401142905.7899.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, zerovalintine@hotmail.com From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, zerovalintine@hotmail.com, gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/10283: operator new does not return null on some windows systems X-SW-Source: 2003-04/txt/msg00019.txt.bz2 List-Id: Synopsis: operator new does not return null on some windows systems State-Changed-From-To: open->closed State-Changed-By: bangerth State-Changed-When: Tue Apr 1 14:29:04 2003 State-Changed-Why: Not a bug. According to the standard, operator new throws an exception when no more memory is available, rather than returning NULL. If you want to get NULL returned, use new(nothrow), or catch the exception. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10283