This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: "new" statement and -fno-exceptions
- From: Paul Koning <pkoning at equallogic dot com>
- To: SLZook at Qualstar dot com
- Cc: pcarlini at suse dot de, mrs at apple dot com, gcc at gcc dot gnu dot org
- Date: Mon, 4 Oct 2004 20:34:18 -0400
- Subject: RE: "new" statement and -fno-exceptions
- References: <9E27B4AB55478346B9F7848926E49B7F4F7178@exchange1.qualstar.com>
>>>>> "Steven" == Steven L Zook <SLZook@Qualstar.com> writes:
Steven> If you compile with -fno-exceptions, and you do not compile
Steven> with -fcheck-new, don't constructors on new class objects
Steven> blow up with NULL pointers when the new for that class (or a
Steven> more global new) fails?
No, that's what surprised me too. And, from the sound of it, Paolo
reacted the same way.
I suppose one could argue that the design is ok as it stands -- if so,
then the documentation clearly needs help.
paul