This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/824
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/824
- From: rodrigc at gcc dot gnu dot org
- Date: 11 Mar 2001 17:26:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: rodrigc at gcc dot gnu dot org
The following reply was made to PR c++/824; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: arne.sorli@kongsberg.frisurf.no, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/824
Date: 11 Mar 2001 17:21:34 -0000
Synopsis: Simple Exception-prog seg.faults
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Mar 11 09:21:34 2001
State-Changed-Why:
Fixed in gcc 3.0 Branch.
Your testcase requires a few changes to compile in gcc 3.0:
(1) #include <iostream> instead of #include <iostream.h>
(2) Add using namespace std;
(3) Your destructor for Exception0() must state in its
exception specification list that it does not throw
any exceptions, since it inherits from std::exception.
The exception specification list for std::exception's
destructor states that it does not throw any exceptions:
virtual ~Exception0() throw () {};
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=824&database=gcc