On Mon, Nov 26, 2001 at 01:47:55PM -0500, Christopher C. Chimelis wrote: > > On Mon, 26 Nov 2001, Guido Guenther wrote: > > > Could you check the source code if these packages crash while messing > > with C++ exceptions? I just had a quick look into the menu package and > > it seems that C++ exception handling is broken on mips using g++-2.95.4. > > A testcase like: > > > > #include <iostream.h> > > #include <string> > > > > class ferror_open { > > int a; > > public: > > ferror_open():a(2){}; > > int message(){ > > return a; > > }; > > }; > > > > int main() > > { > > try { > > throw ferror_open(); > > } catch(ferror_open d){ cout << d.message() << endl;}; > > } > > Thanks for the testcase. I meant to make one when alpha started having EH > problems awhile back, but never got to it....Matthias, I believe this one > will also catch the case that I saw on alpha.
Interesting enough the program works as expected when compiled with -static like "g++ -ggdb -o throw-2.95 throw.cc" (linker bug?) -- Guido