[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++ Exception handlin on mips [was Re: Mozilla...]



Is this a problem, that you can work around using g++-3.0 on mips? I
see the menu package up to date for mips. just wanting to reduce the
severity of the report from `grave' to `important'.

> On Wed, Nov 28, 2001 at 03:29:31AM +0000, Colin Watson wrote:
> > On Mon, 26 Nov 2001 at 19:01:21 +0100, Guido Guenther wrote:
> > > This bug is triggered by a problem with C++ exception handling on
> > > mips. So not a bug in menu itself but rather in g++-2.95.4
> > 
> > So can this bug be reassigned to g++?
> Yes. Discussion is at:
>  http://lists.debian.org/debian-mips/2001/debian-mips-200111/msg00090.html

Guido Guenther writes:
> 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
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: