[Bug c++/16565] Default destructor exception specification not handled consistently
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 15 13:00:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list