This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/16565] Default destructor exception specification not handled consistently


------- Additional Comments From bangerth at dealii dot org  2004-07-15 12:59 -------
No. You declare the destructor of B as one that can throw everything. On 
the other hand, if you let the compiler generate the destructor itself, 
it sees that the exceptions it can throw are exactly those of the destructors 
of the member variables; since the only member variable is an integer, this 
list is empty, so the destructor that is actually generated has the 
signature 
  B::~B () throw () 
which in itself results in 
  C::~C () throw () 
in accordance with the exception specification of the base class. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16565


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