This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3356: Multiple inheritance from a class that has a throw() destructor doesn't compile
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, markus at ibp dot de, nobody at gcc dot gnu dot org
- Subject: Re: c++/3356: Multiple inheritance from a class that has a throw() destructor doesn't compile
- From: aoliva at gcc dot gnu dot org
- Date: 23 Jun 2001 06:50:09 -0000
Synopsis: Multiple inheritance from a class that has a throw() destructor doesn't compile
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Fri Jun 22 23:50:09 2001
State-Changed-Why:
So where's the bug? An overrider of a virtual member function must have a throw() specification at least as strict as that of the overridden member function. Consider how odd it would appear for a caller of the method thorugh a reference to the base class if the overrider could throw an exception that the overriden member function had promised not to throw.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3356&database=gcc