[Bug c++/50871] [C++0x] G++ fails to reject explicitly-defaulted function definition with different exception spec in system headers

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 26 10:15:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50871

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-26 10:14:55 UTC ---
Well, the error itself is protected by ! DECL_IN_SYSTEM_HEADER (old_decl). Thus
I guess the point is whether we want to do something special for C++11 here,
like errors involving defaulted definitions or noexcept itself. Maybe Jason has
something to suggest..



More information about the Gcc-bugs mailing list