c++/4898: adding an option to verify exception specifications
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Sun Sep 15 12:41:00 GMT 2002
Synopsis: adding an option to verify exception specifications
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sun Sep 15 12:37:57 2002
State-Changed-Why:
yes it would be nice. Note, that C++ is not as strict
as Java. For instance
void Foo (int i) throw () {
if (i) throw i;
}
is well-formed provided i is never non-zero. And besides
even then it's not an error, because std::terminate
gets called (though the programmer probably would
like to be told)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4898
More information about the Gcc-bugs
mailing list