This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
exception handling bug
- To: egcs-bugs at cygnus dot com
- Subject: exception handling bug
- From: Vladimir belkin <belkin at minas dot rosmail dot com>
- Date: Mon, 08 Sep 1997 14:43:53 +0400
"operator delete" call while exception processing
is not implemented.
// --------------- Example:
#include<iostream.h>
struct A {
A() {
cerr<<"A constructing\n";
throw 1;
}
void *operator new(unsigned sz) {
cerr<<"A allocated\n";
return ::operator new(sz);
}
void operator delete (void *p) {
cerr<<"A deleted\n";
::operator delete (p);
}
};
void main() {
try {
new A();
} catch (...) {
}
}
// ------------------------------------------------
This program does not type "A deleted", but should.
--------
Vladimir Belkin (vladimir.belkin@usa.net)