This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug or WAD?


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]