This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29466] pointless error on implicit destructor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2006 21:37:01 -0000
- Subject: [Bug c++/29466] pointless error on implicit destructor
- References: <bug-29466-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-13 21:37 -------
Comeau also errors and I don't have access to the standard right at this moment
to double check.
"ComeauTest.c", line 3: error: exception specification for implicitly declared
virtual function "der1::~der1" is incompatible with that of
overridden function "std::exception::~exception"
class der1 : public std::exception { std::string s;};
^
(In reply to comment #0)
> It also introduces non-portable
> implementation dependencies where, as here, the base class is a system class
> with unknown and frequently changing throw specification that vary across
To reply to this part, you are incorrect in saying they are unknown and
changing throw specifications as the C++ standard defines them.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29466