This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug or WAD?
- To: comitale at ca dot ibm dot com (Leo Comitale), egcs at cygnus dot com
- Subject: Re: Bug or WAD?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 24 Nov 1998 19:58:35 -0800
- References: <5030200038652122000002L022*.cygnus.egcs@MHS>
>>>>> Leo Comitale <comitale@ca.ibm.com> writes:
>[running constructor even though new returns 0]
> Can anyone tell me if this is "working as designed" or perhaps this is a
> small bug?
This is conforming behavior. operator new must return a valid pointer
unless it is declared throw().
You can, however, change this with -fcheck-new.
Jason