C++0x PATCH to add -Wnoexcept, fix defaulted fn exception specs

Jason Merrill jason@redhat.com
Wed Jun 16 15:54:00 GMT 2010


Two noexcept related changes:

1) We were failing to give in-class defaulted methods the same exception 
specification as an implicit declaration, as specified in the FCD.

2) I've added a -Wnoexcept flag to help identify places where adding a 
noexcept specifier would be helpful.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wnoexcept.patch
Type: text/x-patch
Size: 8076 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100616/93bed171/attachment.bin>


More information about the Gcc-patches mailing list