This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50871] [C++0x] G++ fails to reject explicitly-defaulted function definition with different exception spec in system headers
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Oct 2011 10:40:30 +0000
- Subject: [Bug c++/50871] [C++0x] G++ fails to reject explicitly-defaulted function definition with different exception spec in system headers
- Auto-submitted: auto-generated
- References: <bug-50871-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50871
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-26 10:40:30 UTC ---
Ah of course it's a system header thing, but -pedantic would have caught it.
This let a bug slip through in the library, which I fixed with
http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/src/condition_variable.cc?r1=180454&r2=180453&pathrev=180454
It would be nice if the compiler had caught it. I assume the condition is there
to handle badly-written system headers, but I don't think we want to allow
mismatched exception spec in libstdc++ itself.