This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12255] exception-specification ignored on pointer to function
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 8 Jun 2011 21:23:52 +0000
- Subject: [Bug c++/12255] exception-specification ignored on pointer to function
- Auto-submitted: auto-generated
- References: <bug-12255-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12255
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Summary|exception-specifications |exception-specification
|unchecked during assignment |ignored on pointer to
|of pointer to function |function
Severity|enhancement |normal
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-08 21:22:30 UTC ---
The underlying issue is that G++ just ignores exception-specifications on
non-function declarations. I think this choice originated in the uncertainty
about whether or not the exeception-specification would become part of a
function type rather than remain associated with the declaration. And as it
happens, DR 92 (http://www.open-std.org/JTC1/SC22/WG21/docs/cwg_active.html#92)
is still open...