This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16565] Default destructor exception specification not handled consistently
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2004 13:00:00 -0000
- Subject: [Bug c++/16565] Default destructor exception specification not handled consistently
- References: <20040715120007.16565.nferguso@eso.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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