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]
Other format: [Raw text]

RE: "new" statement and -fno-exceptions


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


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