c++/10457: exception specs vs. -fno-enforce-eh-specs

Jason Merrill jason@redhat.com
Wed Apr 23 04:16:00 GMT 2003


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-bugs mailing list