bug in throw
Or Tal
ortal@trivnet.com
Tue Sep 15 09:32:00 GMT 1998
Hi,
The following program exists with "Abort" instead of catching the
exception. this happends on
RedHat 5, egcs gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
when uncommenting the 'cerr <<' in ff() the program works correctly.
I'm not subscribe to the list, so answer to me directly,
by,
Or Tal
-----------------------------
#include <iostream>
#include <exception>
#include <new>
struct E {
int i;
};
void ff()
{
throw E();
// cerr << "here f()\n"; // < --------------
uncomment for it to work
}
main()
{
try {
ff();
} catch (...) {
cout << "catched" << endl;
}
cerr << "here2\n";
}
--
Or Tal
More information about the Gcc-bugs
mailing list