Bug in throw() function suffix?
YAKUSH S.E.
yakush@ipmnet.ru
Mon Oct 12 03:00:00 GMT 1998
Hi there,
I came across a strange bug(?) in egcs-1.1 (pgcc-2.91.57 19980901):
A code like this:
#include <iostream.h>
void f() throw(int)
{
throw 0;
}
void main()
{
try{
f();
}
catch(...){
cerr<<"Exception"<<endl;
}
}
compiles OK by g++, but gives Abort(core dumped) at run time.
However, if I comment out throw(int) suffix of function f(),
everything becomes OK! Any ideas of what might be wrong are
highly appreciated. I run Linux RH5.1.
Sergey Yakush
More information about the Gcc-bugs
mailing list