This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-exceptions and bad_alloc
- To: "Thomas van Gulick" <list at Cal040031 dot student dot utwente dot nl>
- Subject: Re: -fno-exceptions and bad_alloc
- From: Jason Merrill <jason at cygnus dot com>
- Date: 27 Sep 1999 18:06:40 -0700
- Cc: <gcc at gcc dot gnu dot org>
- References: <002701bf0948$0c20ba70$0301a8c0@DAGORLAD>
>>>>> Thomas van Gulick <list@utumno.student.utwente.nl> writes:
> When using -fno-exceptions I still get bad_alloc exceptions
> thrown at me when the new operator fails. I also tried the
> fno-check-new flag to no avail.
> Is there any way to really really turn off exception handling
> and throwing?
Use new (nothrow).
Jason