This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/4898] adding an option to verify exception specifications
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2008 16:17:01 -0000
- Subject: [Bug c++/4898] adding an option to verify exception specifications
- References: <bug-4898-2799@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from sebor at roguewave dot com 2008-07-21 16:17 -------
I agree a new warning would be useful. For example, the following code should
be diagnosed:
struct S { S () throw () { throw 0; } };
as should this:
struct S { S () throw (int) { throw ""; } };
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4898