public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3356: Multiple inheritance from a class that has a throw() destructor doesn't compile
@ 2001-06-22 23:50 aoliva
  0 siblings, 0 replies; only message in thread
From: aoliva @ 2001-06-22 23:50 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, markus, nobody

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-22 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-22 23:50 c++/3356: Multiple inheritance from a class that has a throw() destructor doesn't compile aoliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).