C++ PATCH for c++/38796 (checking defaulted declarations)

Jason Merrill jason@redhat.com
Mon Oct 26 20:11:00 GMT 2009


This patch checks that a defaulted special member function is actually 
one that can be defaulted, according to the resolution of core issue 
906.  A defaulted member function must have the same signature as the 
corresponding implicit declaration, no exception-specification, and if 
it is declared in the class body, must have public access and not be 
explicit.

I've adjusted the library headers as needed to conform to this, by 
removing throw() and moving protected definitions out of the class body.

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


More information about the Gcc-patches mailing list