| delorie.com/archives/browse.cgi | search |
| From: | belkin AT minas DOT rosmail DOT com (Vladimir belkin) |
| Subject: | g++ exception handling bug |
| 1 Sep 1997 16:58:07 -0700 : | |
| Sender: | mail AT cygnus DOT com |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <3.0.1.32.19970901233509.0092a2e0.cygnus.gnu-win32@localhost> |
| X-Sender: | belkin AT localhost |
| X-Mailer: | Windows Eudora Light Version 3.0.1 (32) |
| Original-To: | gnu-win32 AT cygnus DOT com |
| Mime-Version: | 1.0 |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
"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 DOT belkin AT usa DOT net)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |