This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/824


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]