c++/3356: Multiple inheritance from a class that has a throw() destructor doesn't compile

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Fri Jun 22 23:50:00 GMT 2001


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



More information about the Gcc-bugs mailing list