diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-09 20:39:27 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-09 20:39:27 +0000 |
commit | 5df0656dbb6af932fce44b8065e99553ab04ffa8 (patch) | |
tree | 65ed177f4327068dadde31bbc8ee89fbb508fca7 /libstdc++-v3/libsupc++/exception | |
parent | b89e7a84489166d635a5618bb9e1f690c2bf3f07 (diff) | |
download | ppe42-gcc-5df0656dbb6af932fce44b8065e99553ab04ffa8.tar.gz ppe42-gcc-5df0656dbb6af932fce44b8065e99553ab04ffa8.zip |
2002-01-09 Paolo Carlini <pcarlini@unitus.it>
libstdc++/3150: revert 2001-11-30 commit. DR266 only means
that the destructors should be removed from the descriptions
in the standard: writing them explicitly allows the vtable
heuristic to work. For additional information see:
http://gcc.gnu.org/ml/libstdc++/2002-01/msg00090.html
http://gcc.gnu.org/ml/libstdc++/2002-01/msg00110.html
http://gcc.gnu.org/ml/libstdc++/2002-01/msg00155.html
* libsupc++/exception (bad_exception::~bad_exception()):
Reintroduce declaration.
* libsupc++/new (bad_alloc::~bad_alloc()): Same.
* libsupc++/typeinfo (bad_cast::~bad_cast()): Same.
(bad_typeid::~bad_typeid()): Same.
* libsupc++/eh_exception.cc (bad_exception::~bad_exception()):
Reintroduce definition.
* libsupc++/new_handler.cc (bad_alloc::~bad_alloc()): Same.
* libsupc++/tinfo.cc (bad_cast::~bad_cast()): Same.
(bad_typeid::~bad_typeid()): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/exception')
-rw-r--r-- | libstdc++-v3/libsupc++/exception | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/exception b/libstdc++-v3/libsupc++/exception index 55dd872cc62..aea61ffa412 100644 --- a/libstdc++-v3/libsupc++/exception +++ b/libstdc++-v3/libsupc++/exception @@ -1,6 +1,7 @@ // Exception Handling support header for -*- C++ -*- -// Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001 Free Software Foundation +// Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002 +// Free Software Foundation // // This file is part of GNU CC. // @@ -62,6 +63,7 @@ namespace std { public: bad_exception() throw() { } + virtual ~bad_exception() throw(); }; /// If you write a replacement %terminate handler, it must be of this type. |