c++/10457: exception specs vs. -fno-enforce-eh-specs
Jason Merrill
jason@redhat.com
Wed Apr 23 04:26:00 GMT 2003
The following reply was made to PR c++/10457; it has been noted by GNATS.
From: Jason Merrill <jason@redhat.com>
To: Cc: bkoz@redhat.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
mark@codesourcery.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/10457: exception specs vs. -fno-enforce-eh-specs
Date: Wed, 23 Apr 2003 05:13:14 +0100
You were right when you said that your testcase is ill-formed. The errors
g++ is giving are correct, per 15.4p3.
I suppose that, as an extension, if a derived function has a looser
exception specification we could clobber it with the one from the base
class and give a pedwarn. But that seems ugly to me.
Jason
More information about the Gcc-prs
mailing list