| http://gcc.gnu.org/ml/gcc-help/2004-02/msg00232.html wrote: |
When new fails to allocate the memory for an object, or new[] fails to allocate the memory for an object array, a std::bad_alloc object is thrown. In GCC, the RTTI mangled name of std::bad_alloc is, I'm guessing, St9bad_alloc.
[...]What it would do is (probably) cause your application's memory heap to become corrupted, and your program to up-n-die with a bug-in-waiting. But it may not necessarily die at the delete or delete[] ... it could run for quite some time before SEGV. |